The basic answer is that it isn’t. Computers are pseudo-random, they can create outputs which look random but actually aren’t.
For more cryptographically secure purposes, they can use certain sources of data like the micro movements of the mouse and the timing between keystrokes to derive extra randomness, but even this isn’t truly random.
Some companies use more extreme measures to get truly random data, like Cloudflare recording a wall full of lava lamps, or random.org uses atmospheric noise.
Latest Answers