public static int getRandomInt(int minimum, int maximum) {
    """
	randomly chooses a number between the minimum and maximum
	<div><b>Example:</b>
	{@code int grade =  NumberUtils.getRandomInt(1,100);} </div>
	
	@param minimum The lowest possible value (inclusive)
	@param maximum The highest possible value (inclusive)
	@return the random number
    """
    int diff = maximum - minimum;
    if (diff == 0)
    {
      return maximum;
    }
    else
    {
      return RANDOM.nextInt(diff) + minimum;
    }
  }
public static int getRandomInt(int minimum, int maximum)
  {
    int diff = maximum - minimum;
    if (diff == 0)
    {
      return maximum;
    }
    else
    {
      return RANDOM.nextInt(diff) + minimum;
    }
  }
public static int getRandomInt ( int minimum , int maximum ) { int diff = maximum - minimum ; if ( diff == 0 ) { return maximum ; } else { return RANDOM . nextInt ( diff ) + minimum ; } }
randomly chooses a number between the minimum and maximum
<div><b>Example:</b>
{@code int grade =  NumberUtils.getRandomInt(1,100);} </div>

@param minimum The lowest possible value (inclusive)
@param maximum The highest possible value (inclusive)
@return the random number
randomly chooses a number between the minimum and maximum <div > <b > Example : < / b > { @code int grade = NumberUtils . getRandomInt ( 1 100 ) ; } < / div >