Closed jefgenowitsch closed 7 years ago
It currently uses a Mersenne Twister 19937 generator with a standard distribution between 0-9 to make the holes at random. The Mersenne Twister is a more advanced randomness algorithm that passes statistical randomness tests and I don't think it can get more random then this.
You could do a weighted randomness, to make it less likely for holes to be close to each other, but that would strictly speaking be less random.
Also another thing to note is that just like the sequence of pieces that every player will get is the same, the sequence of holes in the garbage will also be the same for all players.
tbh, it's not that easy to downstack this garbage... at times.
On Tue, Apr 11, 2017 at 9:27 PM, Olle Samuelsson notifications@github.com wrote:
It currently uses a Mersenne Twister 19937 generator with a standard distribution between 0-9 to make the holes at random. The Mersenne Twister is a more advanced randomness algorithm that passes statistical randomness tests https://en.wikipedia.org/wiki/Mersenne_Twister#Advantages and I don't think it can get more random then this.
You could do a weighted randomness, to make it less likely for holes to be close to each other, but that would strictly speaking be less random.
Also another thing to note is that just like the sequence of pieces that every player will get is the same, the sequence of holes in the garbage will also be the same for all players.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kroyee/SpeedBlocks/issues/91#issuecomment-293390202, or mute the thread https://github.com/notifications/unsubscribe-auth/AXVJOd2z467n3x_wM7W2lU6Dt_MNpv_hks5ru-JEgaJpZM4M6Rb3 .
Good to know, thx!
Is this coincidence or could the holes in the lines be more fine tuned, e. g. made more random and more away from each other. The holes in the screenshot seem to be mirrored and slightly changed.