mercredi 4 mai 2016

Generating a 2 digit integer [duplicate]

This question already has an answer here:

I need to generate a random 2 digit number which will be concatenated to the end of a string. The number MUST be 2 digits (i.e. 00-99, nothing <10 is acceptable).

How can this be done using Java libraries in the simplest way possible?




Aucun commentaire:

Enregistrer un commentaire