mercredi 2 février 2022

How To Generate A Random Integer in Golang?

How can I get a different random integer between zero and 90 that is different everytime the problem is ran? Currently I have

fmt.Println(rand.Intn(90));

But that prints the same number everytime the compiled program is ran.




Aucun commentaire:

Enregistrer un commentaire