dimanche 5 février 2023

If two random numbers generated at exactly same time using Math.random(), would they be same or different?

I want to predict the random number generated with Math.random() function. I studied an article that the algorithm behind random number generator function takes the time in mili seconds an input, and generate a random number.

So, is this possible to predict the next random number?

I am playing a game named as dragon/tiger. Each dragon and tiger has 13 numbers. The numbers for both are both randomly generated after every 15 seconds. The side having higher number wins. Is there any way to predict which side will win(what number would be generated next)?




Aucun commentaire:

Enregistrer un commentaire