Predict the Seed of Javascript's Math.random

后端 未结 4 820
独厮守ぢ
独厮守ぢ 2020-12-17 23:34

Okay, so I\'m doing some research on how random numbers are generated with the Math.random method. So far I learned that it starts with a \"random\" seed, and that seed is p

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-18 00:35

    No, you cannot predict the seed, but you can preemtively generate enough numbers in order to accurately brute force a match.

    Anyhow, start of by reading the wiki page on RNG's - http://en.wikipedia.org/wiki/Random_number_generation, the look at the practical implementations of PRNG's.

提交回复
热议问题