How does a computer program generate random numbers? Example: when you ask Siri to give you a random number between 1 to 10, how does it come up with that number?

756 viewsMathematicsOther

How does a computer program generate random numbers? Example: when you ask Siri to give you a random number between 1 to 10, how does it come up with that number?

In: Mathematics

18 Answers

Anonymous 0 Comments

Randomness doesn’t exist, i mean not in math. Programming languages have “seeds” that is a factor of “randomness” which the program can access and calculate the next “random” number. That means that you will get a different number each time until the seed ends and then repeats the cycle.

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