Random number generator
A random number generator using a for-loop.
Copy this code and paste it in your HTML
int randomValue = 0;
for (int i = 0; i < 10; i++) {
randomValue
= (int) (Math.
random() * 10);
System.
out.
println("Random No " + i
+ ". " + randomValue
); }
Report this snippet
Comments
Subscribe to comments