Code example for Random

Methods: nextDouble

0
	public static float getFloat(float max) { return getFloat() * max; }
	public static float getFloat(float min, float max) {
		return ((max > min) ? (min + getFloat(max - min)) : min);
	} 
	 
	public static double getDouble() { return random.nextDouble(); }
	public static double getDouble(double max) { return getDouble() * max; }
	public static double getDouble(double min, double max) {
		return ((max > min) ? (min + getDouble(max - min)) : min);
	} 
	 
	public static boolean getBoolean(double probability) { return (getDouble() < probability); }
	 
	public static double getGaussian() { return random.nextGaussian(); }
	 
}