import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNextInt()) {
int seed = scanner.nextInt();
Random random = new Random(seed);
//write your code here......
System.out.println(random.nextInt(6)+1);
}
}
}
random.nextInt(bound); 0~bound-1



京公网安备 11010502036488号