# How Computers Generate Random Numbers

The first question should be “does computer Generate Random numbers? For everything performed by computers, they generate random numbers ranging from cryptography to video games and gambling. When you then talk about computer random numbers, there are specifically two major categories of random numbers which are “True” random number and “pseudorandom” numbers.

They both have different security importance in the encryption system. Try to understand this topic by asking yourself what random numbers are used for? This question is very important because it will clear the mind of those who ask if Intel’s built-in hardware random number generate chip secure.

## Tips:

This is to show you how these two relate information. Sometimes, computers can generate truly random numbers via observation of some outside data like mouse movements which are not predictable and thereby creating data from it. However, this is otherwise known as entropy. On the other hand, they generate “pseudorandom” numbers by using an algorithm in order to give random results, even though they are not.

## What are Random Numbers Used for?

Back to the track! What Random Numbers are used to answers the question o “when” also. Random numbers have been used for many thousands of years. No matter what you may do with the computer, its obligation is to leave you with an end result up to random chance.

This generator is very important for performing different purposes. Just like I mentioned earlier, aside from generating random numbers for the purpose of creating unpredictable results in compute games, you also require randomness in cryptography. This is because cryptography requires a whole lot of random numbers that attackers can’t guess. So have it in mind that we can’t use just the same numbers over and over time. So in order to avoid the attackers guessing the number, we require a very unpredictable number.

ALSO READ:  Best Way on How to Format C Drive in Windows?

These random numbers are needed for secure encryption whether you are encrypting your personal files or you are just using the HTTPS website on the internet.

### How True Random Numbers Work

This actually sounds weird that a computer can generate random numbers. For your information, this is just a piece of code and most of you will wonder why it is unpredictable. This is why it is grouped into two types depending on how there are generated “True numbers and pseudorandom numbers”.

Now when you talk about “true random number”, the computer makes use of some physical phenomenon that takes place outside of the computer. Now relate it with this “the computer could measure the radioactive decay of an atom.

Now according to the quantum theory, there is no way to detect when radioactive decay will occur. What this means is “pure randomness” from the universe. So, therefore, an attacker will not be able to predict when radioactive decay will occur and will not know the random value.

For instance, the computer can also depend on atmospheric noise or make use of the time you made a command with the keyboard keys as a source of entropy. At that time, your computer can use exactly the time you pressed a key to developing a random number.