How to generate 10 random numbers between 0 to 100 and how to stop running the application if a random number is greater than 75 in java ? As well, if the generated random numbers till getting a number greater than 75 shall be added together and it shall display as the score of the player. (e.g. if the generated random numbers till 6th iteration are 17, 64, 49, 21, and 38, then the score is 189).Finally, if user request to play a new game, the application shall allow to it. How to generate this? Please help me.
Aucun commentaire:
Enregistrer un commentaire