Practice using random numbers ① Simulation when carefully selected different colors of hatching without items
import java.util.Random;
public class Irochigai { public static void main(String[] args) { System.out.println ("different color simulator");
Random r = new Random();
int randomValue = r.nextInt(4096);
if (randomValue == 4096) {
System.out.println("Irochi");
}
else {
System.out.println("normal");
}
System.out.println(randomValue);
}
}
Future plans
-Implemented "press key to continue simulation"
・ Corresponds to changes in conditions due to items and careful selection methods