Re: [go-nuts] fixed random number trouble
golang-repeats-the-same-random-number > On Wed, Mar 14, 2018 at 11:26 AM, Andrea Alessandrini > wrote: > > I wrote this simple code > > > > package main > > import ( > > "fmt" > > "math/rand" > > ) > > func main()
[go-nuts] fixed random number trouble
I wrote this simple code package main import ( "fmt" "math/rand" ) func main() { for i := 0; i < 6; i++ { fmt.Println("My favorite number is", rand.Intn(100)) fmt.Println("My favorite number is", rand.Int()) } } and I run it in my pc or in a web application (https://tour