Thanks for your help, King.
Type: Posts; User: maple1100
Thanks for your help, King.
May I know how to reset a variable? Thank you.
After the random number is generated, I need to compare it to see if the number is =1, if not the number would have to generate again, for a total of 5 time. Without the while loop, is there another...
Oh! Thank you for that pointer. Do you have any suggestion on how I can modify my code so that the outer loop will run depending on the user input of trials and the inner loop search until it find...
Could anyone help me figure out why the outer loop stop running after just trial 1? Thanks
System.out.print("Please enter the number of trials: ");
int uInput =...