+ 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?

20th Aug 2018, 10:39 PM
Saeed Vahid
Saeed Vahid - avatar
5 Réponses
+ 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
21st Aug 2018, 12:04 AM
Eduardo Petry
Eduardo Petry - avatar
+ 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
20th Aug 2018, 11:22 PM
Țucu🇷🇴
Țucu🇷🇴 - avatar
+ 2
i hope i helped
20th Aug 2018, 11:22 PM
Țucu🇷🇴
Țucu🇷🇴 - avatar
+ 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.
21st Aug 2018, 2:12 AM
wenz
wenz - avatar
- 1
PIE, BEGINNING @ .???, because it never repeats itself Sequentially. There are others but Now we're getting into My discussions.
4th Mar 2019, 11:50 PM
Mike Diaz
Mike Diaz - avatar