r/AskComputerScience • u/Forsaken-Job-7126 • Jul 01 '26
Since computer can only generate pseudo random numbers
can't you do really cool trick with the fact that if you were to roll a dice 5 times and all the previous rolls were the number 3 normally with true random ness the 6th roll only gets a 1/6 chance of rolling any number. Is that still true with pseudo randomness ? and if so can you prove it
0
Upvotes
View all comments
Show parent comment
13
u/dmazzoni Jul 01 '26
And to add more detail: every mainstream PC, laptop and smartphone made in the past 10 years has a hardware random number generator. It’s basically standard these days.
And similarly, your operating system has an API for cryptographically secure random numbers that will use the hardware random number generator and other good sources of entropy.
It feels like many CS courses are still stuck in the 1990s when seeding a pseudorandom number generator with the clock was considered “state of the art”. We’ve come a long way since then.