+ 3
How does a CPU generate random numbers?
random numbers are base of games and some programs and it must be a basic process of a CPU ,but how is it possible?
5 ответов
+ 7
"Random" numbers generated by a computer are actually pseudorandom.
Generating truly random numbers isn't as simple of a task as it seems.
Here, have this video of Numberphile about this subject:
https://youtu.be/SxP30euw3-0
+ 4
they are not actually random... they are based from some function
for exemple in c we have rand() wich generate diferent valors... but is not quite random cuz is following a function and if you generate les say 100 numbers you will se a patern in those numbers(they are repeating)
if we talk about truly random we speak about function srand(time(0)) when rand() fumction is changing depending on the time, well that is trully random
+ 2
i hope i helped
+ 1
for generating 'real' random, a technique is to use a real physical input such as an electron's movements which are never exactly the same. random without patterns or dependencies by CPU is not possible I think.
- 1
PIE, BEGINNING @ .???, because it never repeats itself Sequentially. There are others but Now we're getting into My discussions.