All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venky.core.random.Randomizer Maven / Gradle / Ivy

There is a newer version: 1.18
Show newest version
package com.venky.core.random;

public class Randomizer {
	/**
	 * @param min
	 * @param max
	 * @return A random number between min and max, inclusive of both the end points.
	 */
	public static int getRandomNumber(final int min, final int max){
		return (int)(min + Math.random() * (max - min + 1)); 
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy