public static void main(String[] args) { int max=10000; int min=1000; Random random = new Random(); int s = random.nextInt(max)%(max-min+1) + min; System.out.println(s); }
public static void main(String[] args) { int max=10000; int min=1000; Random random = new Random(); int s = random.nextInt(max)%(max-min+1) + min; System.out.println(s); }