
Any programming language has a function to generate random numbers, for ex. rand ( int $min , int $max ) in PHP or Math.round(x) in Javascript.
The numbers generate by these function are considere pseudo-random because they derives from a mathematical forumla or depend on time counting.
In specific applications like games and gambling or for security it is required to have reliable random numbers. Here the possibilities I found:
1. Fortuna is a cryptographically secure pseudorandom number generator, a JS implementatio can be found at http://sourceforge.net/projects/clipperzlib/
2. Random.org offers true random numbers to anyone on the Internet. The randomness comes from atmospheric noise.
3. The most reliable solution is an hardware generator such as Quantis, a physical random number generator exploiting an elementary quantum optics process.






