News for hackers. Stuff that matters.
Re:Predicting one of 2 characters you will randomly press by rohanprabhu on Friday July 15, 2016 @10:31AM (#12101190)
So, I tried a simple python one-liner:

[os.urandom(1)[0] < 128 for x in xrange(0, 100)]

and typed 'd' for True and 'f' for False in the array, bringing the accuracy of the predictor down to 53%. Theoretically, I'm guessing doing it for large enough numbers should make it exactly 50%.

Re:Predicting one of 2 characters you will randomly press by mikeash on Friday July 15, 2016 @10:34AM (#12101217)
If it doesn't come down to 50% for sufficiently large numbers, you've found a break in your OS's urandom and someone is about to be famous!