vendredi 27 novembre 2015

Java Math.Random() for series of numbers

Is it possible to use Math.Random() in Java to obtain numbers in a series such as 10, 20, 30, 40... or 100, 200, 300.... My current implementation is Math.Random()*3*100 as I thought that would bring me numbers up to 300 that are divisible by 100.




Aucun commentaire:

Enregistrer un commentaire