samedi 29 juillet 2017

Random number issue in golang

This is the code i'm working with :

package main
import "fmt"
import "math/rand"

func main() {
code := rand.Intn(900000)
fmt.Println(code)
}

It always returns 698081. I dont understand what is the problem ? http://ift.tt/2vhv8Ds




Aucun commentaire:

Enregistrer un commentaire