random numbers

Java random numbers (how to create)

Java random numbers FAQ: How do I create random numbers in Java?

To create random numbers in a Java program, use the java.util.Random class.

As a simple example, this code generates a random number between 0 and 9: