I want the program print one number only between 1 and 1000, not many numbers.
String RollingDice = input.next();
if (RollingDice.eqauls("Yes") || RollingDice.eqauls("yes")){
Random rn = new Random();
for (int i=1 ; i<= 1000; i++){
int answer = rn.nextInt(10)+1;
System.out.println(answer);
Aucun commentaire:
Enregistrer un commentaire