in java, and in c
the random number generator depends on the system's time, say nano time
Why computers can't generate a random numbers??
The numbers produced on a computer are not truly random since a deterministic algorithm created them and the results are reproducible exactly.
The sequences "appear" to be random, however, and are useful in calculations and simulations.
Reply:Because computers cannot think for themselves, they can only follow instructions.
If you know the exact instructions that a computer is following to create its pseudo-random number, you could follow the same instructions yourself and predict the number the computer is going to give you next.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment