Here you can find the source of randomLongs(final long count, final long min, final long max)
public static long[] randomLongs(final long count, final long min, final long max)
//package com.java2s; //License from project: Apache License import java.util.Random; import java.util.concurrent.ThreadLocalRandom; public class Main { public static long[] randomLongs(final long count, final long min, final long max) { final Random rand = ThreadLocalRandom.current(); //TODO test for max and minimum values final long[] randomNum = rand.longs(count, min, max + 1).toArray(); return randomNum; }/*from w w w. ja va 2 s . c o m*/ }