This conversation is closed. Start a new conversation
or join one »
How does computer generate random numbers ?
Computers are basically dumb. a given set of methods, a given set of initial conditions the answer to the problem is always same in computer.so how does it generate a random number. i could basically generate a random number by the garbage value stored in a variable. but how does that garbage value exist. is it a memory slot with is converted into data. then how come computer store data in random places. theoretically computer should not be able to generate a garbage value or it is a pre-programmed assembly language code that means it is not a random number














S.R. Ahmadi 20+
for example if you divide a second into 1000 parts.
at the moment you click computer gets the millisecond or nanosecond time from clock and make a number using it.
anyhow it is by time and clock.
Christophe Cop 500+
To generalize the question: actually, we describe processes as being random. We do not truly know if it is "really random"... though it seems to us that it is. And it most likely exists (as our strongest tests -against randomness- fail to show it doesn't exist)
(Randomness is an assumption, and a very good one for a lot of things)
Austin R 20+
http://en.wikipedia.org/wiki/Pseudorandom_number_generator
Computers generate pseudorandom numbers. The links elaborate.