github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/MyCode/rand.go (about) 1 package main 2 import ( 3 "fmt" 4 "math/rand" 5 ) 6 func main(){ 7 8 fmt.Println("my choice is",rand.Intn(10),rand.Intn(10),rand.Intn(10),rand.Intn(10)); 9 fmt.Println("my choice is",rand.Intn(10)); 10 fmt.Println("my choice is",rand.Intn(10)); 11 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 12 fmt.Println("my choice is",rand.Intn(10)); 13 fmt.Println("my choice is",rand.Intn(10)); 14 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 15 fmt.Println("my choice is",rand.Intn(10)); 16 fmt.Println("my choice is",rand.Intn(10)); 17 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 18 fmt.Println("my choice is",rand.Intn(10)); 19 fmt.Println("my choice is",rand.Intn(10)); 20 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 21 fmt.Println("my choice is",rand.Intn(10)); 22 fmt.Println("my choice is",rand.Intn(10)); 23 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 24 fmt.Println("my choice is",rand.Intn(10)); 25 fmt.Println("my choice is",rand.Intn(10)); 26 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 27 fmt.Println("my choice is",rand.Intn(10)); 28 fmt.Println("my choice is",rand.Intn(10)); 29 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 30 fmt.Println("my choice is",rand.Intn(10)); 31 fmt.Println("my choice is",rand.Intn(10)); 32 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 33 fmt.Println("my choice is",rand.Intn(10)); 34 fmt.Println("my choice is",rand.Intn(10)); 35 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 36 fmt.Println("my choice is",rand.Intn(10)); 37 fmt.Println("my choice is",rand.Intn(10)); 38 fmt.Println("my choice is",rand.Intn(10));fmt.Println("my choice is",rand.Intn(10)); 39 fmt.Println("my choice is",rand.Intn(10)); 40 fmt.Println("my choice is",rand.Intn(10)); 41 fmt.Println("my choice is",rand.Intn(10)); 42 }