jeudi 28 avril 2016

Looping for a random number of times java

my problem is that i need to produce a random number, which is fine i've done that part, but then i need to use that random number to loop.

So for example if the random number was 13, then loop a piece of code 13 times.

i've had a mess around and haven't managed to get anything working and haven't been able to find anything online to help me.

Basically what i'm trying to find out is if this is even possible?

thanks guys.




Aucun commentaire:

Enregistrer un commentaire