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