Possible Duplicate:
How does rand() work? Does it have certain tendencies? Is there something better to use?
I’m not sure when the rand() function or similar in any programming language returns a value totally “logical”. Because they are not based on time, hours, days or something I wonder how he chooses the number. One could answer me?
Thanks, Bruno Alano.
It depends on the algorthmn. Wikipedia has a summary of one way of computationally creating a ‘random number’
http://en.wikipedia.org/wiki/Random_number_generation
You can now buy hardware random number generators that produce better random numbers