Java Random Long randomLongWithMinMax(long min, long max)

Here you can find the source of randomLongWithMinMax(long min, long max)

Description

random Long With Min Max

License

Apache License

Declaration

public static long randomLongWithMinMax(long min, long max) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static long randomLongWithMinMax(long min, long max) {
        return (long) (min + (Math.random() * (max - min + 1)));
    }/*from   w ww . j  a  va2 s  . co m*/
}

Related

  1. randomHexOfLong(long max)
  2. randomLong()
  3. randomLong()
  4. randomLong(long min, long max)
  5. randomLong(long x, long y)
  6. randomSleep(long ms)
  7. randomStr(long strLen)
  8. randomStr(long strLen)
  9. randPosLong()