Write a Java program to generate random numbers using Random()

By | 09.02.2017

Java program to generate random numbers


To generate random numbers in Java programming, you have to create the object of Random class available in the java.util.Random package as shown in the following program.

Following Java program to generate random numbers: This code generates random numbers in range 0 to 10000

SOURCE CODE ::

 

OUTPUT ::

 

 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments