system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: What algorithms do programmers use to produce "randomness"

I know that it is impossible to make something truly random, but what algorithms do most people use to do so?
gpt
There are different possibilities: There are so called "hash functions". You put a number in, you get a number out. The important thing: if you put two close values in, you get two vastly different outputs. If you use now the system time, you can get pseudo-random numbers.

Another way is that your Operating System helps you. A computer can "gather" randomness by user input (what does the user type? how fast? how does he move the mouse?) and hard drives (how long does it take to read?). This is much better randomness, as it can't be predicted by software how you type. Then, when the randomness is gathered, the Operating System allows programs to extract random numbers.