lundi 31 août 2015

Can you find previously generated random numbers generated using the java.util.Random?

Is is possible to find previously generated random numbers generated using java.util.Random?


I found information at this website, it seems to indicate it uses a LCG in the format

numberi+1 = (a * numberi + c) mod 248

where the first value of number is the seed and it is simply added to by one every time nextInt (or somthing similar) is called

Does anyone have any more information on how it is generated? or what the offset values are?




Aucun commentaire:

Enregistrer un commentaire