Вывод верный.
package com.javarush.task.task28.task2803;
import java.util.concurrent.ThreadLocalRandom;
/*
ThreadLocalRandom
*/
public class Solution {
private static final ThreadLocalRandom tLR = ThreadLocalRandom.current();
public static int getRandomIntegerBetweenNumbers(int from, int to) {
return tLR.nextInt(from, to);
}
public static double getRandomDouble() {
return tLR.nextDouble();
}
public static long getRandomLongBetween0AndN(long n) {
return tLR.nextLong(0, n);
}
public static void main(String[] args) {
}
}