Return to Snippet

Revision: 63280
at April 22, 2013 14:42 by karellism


Initial Code
int randomValue = 0;

		for (int i = 0; i < 10; i++) {
			randomValue = (int) (Math.random() * 10);

			System.out.println("Random No " + i + ". " + randomValue);
		}

Initial URL

                                

Initial Description
A random number generator using a for-loop.

Initial Title
Random number generator

Initial Tags
math

Initial Language
Java