dimanche 27 septembre 2015

Java: Generate random double from 0.1 to 1

So, I know I can use double random1 = new Random().nextDouble();

But how can i make it so it only outputs doubles from 0.1 to 1?




Aucun commentaire:

Enregistrer un commentaire