mardi 5 juillet 2016

Generate random number of n digits or more

I saw many examples to generate random numbers in a specific range [min-max], but i need java code that generates random numbers of n digits or more, so in this case min= 10000000 and no max.

Note - I am using BigInteger




Aucun commentaire:

Enregistrer un commentaire