 <p>Random numbers have certain special properties. Computer memory in general doesn't satisfy those properties.</p> <p>If I sampled computer memory, tons of it would be quite similar, and certain numbers would have such a low probability of existing, that they might not even be found within the entire memory of a computer.</p> <p>That's not to mention that if I read a bit of memory that's outside of the memory allocated to a program, the OS will kill me dead with a SEGFAULT.</p> <p>It's a bad idea, on many levels. Use a proper random number generator.</p>