FileDocCategorySizeDatePackage
Random1.javaAPI DocExample320Mon Mar 15 19:43:32 GMT 2004None

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());
		//-