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
1
u/Fidodo Nov 03 '20
Randomness is completely at odds with what a processor should output, so just looking at the hardware inputs and outputs themselves there should be no randomness. However, it's possible to poll observable random elements, for example, you can use the temperature of the processor as a seed for the random number generator, and since it's polling an incredibly complicated physical process it is sufficiently random.