jeudi 22 novembre 2018

Generate random numbers with the first one being zero

I know how to get a range of random numbers between 0 zero and any number.

But what I want to know is, since the random number generator is not truly random, and follows a specific algorithm, for example if you pass a seed of 20. then it will always generate the same sequence of numbers: 17, 292, 0, 9.

So I get that. Since it follows a specific algorithm, is there a way I can force the generator to always start at zero or any other number?

But specifically zero in my case.




Aucun commentaire:

Enregistrer un commentaire