FileDocCategorySizeDatePackage
Random1.javaAPI DocExample340Sat Nov 25 12:56:04 GMT 2000None

Random1

public class Random1 extends Object
Demonstrate the easy way of getting random numbers, using java.lang.Math.Random().

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		//+
		// java.lang.Math.random() is static, don't need to construct Math
		System.out.println("A random from java.lang.Math is " + Math.random());
		//-