ELi5 , how do random number generators work?

733 views

How is it different than the program just choosing the number it wants within range?

In: 6

11 Answers

Anonymous 0 Comments

Typically by using a pseudo-random number from a seed. So imagine you start with a seed something like the current second-minute-hour-day-month-year so a number like 20220708155533. They then do a series or predetermined math calculations (like say x73, -1234567890, x123, +9874561230, x258369, -7777777777) then take the digit that is in the 10000 digit as the random number.

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