- #1
flotsam
- 29
- 0
Simple question: Can computers create 'truly' random numbers?
Computers use algorithms to generate random numbers based on a seed value. This seed value is typically generated from a source of randomness, such as the current time or user input. The algorithm then uses complex mathematical operations to generate a sequence of seemingly random numbers.
No, computer-generated random numbers are not truly random. They are pseudo-random, meaning that they appear to be random but are actually generated by a predetermined sequence of mathematical operations. However, for most practical purposes, these numbers are considered random enough.
Technically, yes. Since computer-generated random numbers are based on a seed value, if the same seed value is used, the same sequence of "random" numbers will be generated. However, the likelihood of this happening is extremely low, and with a good algorithm and a large enough seed space, the chances of getting the same number twice are practically impossible.
To generate truly random numbers on a computer, you would need to use a hardware random number generator (RNG). This is a device that uses physical processes, such as atmospheric noise or radioactive decay, to generate truly random numbers. These numbers can then be fed into a computer for use in applications that require a high level of randomness.
It depends on the application and the quality of the random number generator being used. For most everyday applications, computer-generated random numbers are considered reliable enough. However, for applications that require a high level of security, such as encryption, it is recommended to use a hardware RNG for truly random numbers.