mercredi 26 juillet 2017

Random java and Finding random

I have written a program which generates 5 random integers using Random in the java.util package and stores them in an array of objects. The array has as size of 252 (index 0 to index 251) where each index holds 5 values. I then use the Random instance to generate a random number between 0 and 251 to use as an integer. I was wondering since the random implementation is linear, would it be possible to guess the random integer that is generated for the index.




Aucun commentaire:

Enregistrer un commentaire