jeudi 12 septembre 2019

How to generate a random mobile number, that starts with zero?

This is the answer for this

 String getRandomMobileNumber() {
        double random = Math.random();
        Double randomten = random*1000000000.0;
        return "0"+Math.round(randomten);
    }




Aucun commentaire:

Enregistrer un commentaire