3 ms·
"True randomness is hard to achieve, especially with computers." Yes, for important cryptography. No, for pretty much everything else. Use a decent random numb
by joosters 13y ago
"True randomness is hard to achieve, especially with computers."
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.
- ronaldx 13y agoRandomness is also useful for the integrity of online gambling - knowing what cards are coming next in a high stakes game might not be considered a waste of time.
- zwily 13y agoI think his point was that the game would be using a predictable RNG, which made his whole endeavor possible.
- ainsej 13y agoIt was sort of an interesting aside from an another aside. There are loads of different ways to write a Tetris Bot, and I've got a few different implementations varying from brute forcing the game tree to using genetic algorithms. But I figured it'd be interesting to see what could be done with perfect prediction of all the future tetrominos.