how do random numbers on computers work?

1.52K views

For example, is there a formula for a random number?

In: 47

75 Answers

Anonymous 0 Comments

You can definitely create true random numbers. [Wiki link](https://en.wikipedia.org/wiki/Hardware_random_number_generator). It requires special hardware that measure quantum states or the thermal states related to quantum objects.

It’s time consuming and only used for cryptography . But it does exist and it’s truly random. It *has* to be.

As for your average computer program, as everyone else has said, it’s pseudo-randomness. Imagine shuffling a deck of cards until it is random. But one person in the room looks at the order, doesn’t tell anyone and leaves. Is the deck random? It is for everyone in the room. But technically, someone somewhere knows the order so it can’t be true random. That’s how psudo-random works. It’s effectively random, but you could determine the results by calling up that one person.

You are viewing 1 out of 75 answers, click here to view all answers.