Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomNextLongExample5 { public static void main(String[] args) { // Returns a pseudorandom, uniformly distributed long value between 26000 and 60000 System.out.println("Random long value is: " + ThreadLocalRandom.current().nextLong(26000, 60000)); } }
Output