6

To generate a true random number you must call the random function a random amount of times, store those results in an array, then pick a random array index

Comments
  • 7
    Except that's not truly random, as you're using an imperfect randomized source usually. You need an external random number generator using external noise, like power fluctuations and noise from space.
  • 0
    pn sequence is a solution to some extent
  • 3
    @ChlorideCull but someone with an accurate simulation of every particle in existence could still predict any "random" numbers generated this way ;)
  • 0
    In c# it's best to use the crypto libraries to generate a random number rather than the Random type
  • 0
    @AdamGaskins Ever heard of the uncertainty principle?
    Say my name.
    Heisenberg.
    You're god damn right.
Add Comment