code: public static int nextInteger(int min, int max) {
  		if (max - min <= 0)
  			return min;
  
  		return min + _random.nextInt(max - min);
  	}
docs: Generates a integer in the range ['min', 'max']. If 'max' is omitted, then
  the range will be set to [0, 'min'].
  
  @param min minimum value of the integer that will be generated. If 'max' is
  omitted, then 'max' is set to 'min' and 'min' is set to 0.
  @param max (optional) maximum value of the integer that will be generated.
  Defaults to 'min' if omitted.
  @return generated random integer value.