Good piece
Good piece
Posted Nov 20, 2012 21:42 UTC (Tue) by dlang (guest, #313)In reply to: Good piece by man_ls
Parent article: LCE: Don't play dice with random numbers
the issue isn't repeating numbers, it's repeating the exact same sequence of numbers.
If you flip a (fair) coin and it lands head 8 times in a row (a 1 in 256 chance), what are the odds of it landing heads the next time.
if it's really a fair coin, the chance is 1 in 2
If you are getting a 8 bit value, the chances of getting the exact same number the next time you get a value are 1 in 256.
If you change your system so that you guarantee that you don't get that same number twice within 128 tries, you will have seriously hurt the randomness of your results
