Code example for Random

Methods: nextDouble

0
		return random;
	} 
 
	private static char getRandomChar() 
	{ 
		Random r = new Random();
		int i = (int) ((r.nextDouble() * 26.0) + 97.0); // range for a-z
		return (char) i;
	} 
 
	public static int getRandomInt() 
	{ 
		Random r = new Random();
		return r.nextInt();
	} 
 
	public static double getRandomDouble() 
	{ 
		Random r = new Random();
		double d = r.nextDouble();
		// DecimalFormat df = new DecimalFormat("#.##########");