Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You need to generate random numbers in a hurry.
Use java.lang.Math.random( ) to generate random numbers. There is no claim that the random values it returns are very good random numbers, however. This code exercises the random( ) method: