Java Random Long randomLong(long x, long y)

Here you can find the source of randomLong(long x, long y)

Description

random Long

License

Open Source License

Declaration

public static long randomLong(long x, long y) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static long randomLong(long x, long y) {
        return x + ((long) (Math.random() * (y - x)));
    }/*from  w  w  w .j  a  v  a2s  . c o  m*/
}

Related

  1. random(long range)
  2. randomHexOfLong(long max)
  3. randomLong()
  4. randomLong()
  5. randomLong(long min, long max)
  6. randomLongWithMinMax(long min, long max)
  7. randomSleep(long ms)
  8. randomStr(long strLen)
  9. randomStr(long strLen)