Calculating the perfect Tetris play: Part I
ains.co
ains.co
Yes, for important cryptography. No, for pretty much everything else. Use a decent random number generator, there are many to choose from. Problem solved. Do not reinvent one.
If you are investigating the workings of Math.random() when coding a tetris bot, you are prevaricating and IMO wasting your time.
You're starting from a zero point, there's gotta be a minimum cyclic graph with each node having 7 outgoing connections for each new piece, and representing a certain configuration of blocks on the ground...
If you can predict the pieces perfectly you will always[1] perform at least as well as the same bot but using worse information.
[1] assuming your bot is any good.