[JAVA] Número Aleatorio Math.random()
Número aleatorio entre a y a + b, excluyendo a + b:
a + Math.random() * b
Copy this code and paste it in your HTML
(int) (Math.
random() * 10) // aleatorio entre 0 y 9 50 + (int) (Math.
random() * 50) // aletario entre 50 y 99
Report this snippet
Comments
Subscribe to comments