In this program, you'll learn to Generate a Random Array of Integers. This is done bt using java.util.Random class.
In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence.
Generate a Random Array of Integers
When you run the program, the output will be:
Array Elements :26 79 59 1 11 48 49 20 58 16