vendredi 6 novembre 2015

how to generate a random long with 4 digits in java? [duplicate]

This question already has an answer here:

how to generate a long that is in the range of [0000,9999] (inclusive) by using the random class in java? The long has to be 4 digits.




Aucun commentaire:

Enregistrer un commentaire