Predict the output of generator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Predict the output of generator

is there a possible Way to 'predict' the output of a random generator based on some data already generated ?!

24th May 2018, 10:08 PM
Skon Houas
Skon Houas - avatar
3 Answers
+ 6
Yes if the random generator uses PRNG algorithm. You just have to get all the numbers in its full period. But that is a lot of numbers.
24th May 2018, 11:56 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
The easiest way is to look at the documentation of the code itself. The algorithm used should be mentioned there. If not, you would have to analyze the code itself.
29th May 2018, 3:49 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
- 1
and how.do I know if the random generator uses prng algo?
27th May 2018, 10:26 PM
Skon Houas
Skon Houas - avatar