Java random class, need to randomize only 0,10, 20,30,40,50 instead of any number in that range
Need help with my java program, I know how to use the random class to generate a random number up to a certain number; but for this specific program I need to generate a random number out of 0 ,10 ,20 ,30 ,40 , and 50.
Aucun commentaire:
Enregistrer un commentaire