Warm tip: This article is reproduced from stackoverflow.com, please click
random

Is it possible to predict what number will computer choose randomly?

发布于 2020-03-27 10:22:28

I'm trying to know what number the computer will randomly choose. Will I need a specific algorithm? Or do I need artificial intelligence?

Questioner
osama syr
Viewed
47
Cal Irvine 2019-07-03 22:22

You can't predict a true random number, by definition, as it is random. Pseudorandom numbers can be predicted if you know both the algorithm being used and the seed number being provided.

https://www.howtogeek.com/183051/htg-explains-how-computers-generate-random-numbers/

Here's a good article on the different methods of generating random numbers.