Random Number Generation Algorithm? Do not use System.Random

If there wasn’t a System.Random class, how would you create a random number?

Are there any known algorithms or have you ever developed them?

+3
source share
4 answers

True random numbers can only be generated "outside" the computer using a radioactivity count, etc. Some VIA processors have hardware for this.

Volume Two of Don Knuth's “The Art of Programming” spends a lot of time discussing exhaustive realizations of pseudorandom numbers from a mathematical background. Recommended reading.

+7
source

. . . .

+1

Mersenne Twister. , , System.Random, PRNG .

+1

, , , , , , - , , , .

:

+1
source

Source: https://habr.com/ru/post/1761873/


All Articles