r/AskProgramming • u/Nand-X • Nov 02 '20
Does randomness really exist in computers, where everything has to be an output of a logical calculation at the core of a computer's hardware? Is it really a random result that a random number picker out of a set of numbers gives you?
Thank you
53
Upvotes
6
u/[deleted] Nov 03 '20 edited Nov 03 '20
Yes.
There's nothing in theory, as far as I know, that prevents somebody from attaching an interferometer up to a computer, so I assume somebody has done it. If you want a more specific answer, you'd have to be more specific about which computers. However, the simplest parsing of "does randomness exist in computers" is, "among all computers, is there one which contains randomness," the answer would have to be most probably yes.
I mean, for all you know maybe I plugged an interferometer into my computer and, generated some random bits, and used them to seed my RNG. You don't know, and I'm not telling!