Skip to Main Content
Java Programming by Pearson
book

Java Programming by Pearson

by Hari Mohan Pandey
May 2024
Intermediate to advanced content levelIntermediate to advanced
889 pages
37h 5m
English
Pearson India
Content preview from Java Programming by Pearson
Basic Utility Classes • 599
19.5 THE RANDOM CLASS
The class is defi ned within java.util package. An instance of this class is used to generate a stream of
pseudorandom numbers. These numbers are called so, as they are uniformly distributed over a range of
numbers. The numbers are generated randomly on the basis of some initial value known as seed value.
There are two different constructor forms of this class:
1. public Random()
This form of constructor creates a new random number generator. The default seed for this is the
current time.
2. public Random(long seed);
This form of constructor creates a new random number generator ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Programming, 1st Edition by Pearson

Java Programming, 1st Edition by Pearson

K. Rajkumar
Object Oriented Programming Through Java by Pearson

Object Oriented Programming Through Java by Pearson

Ramesh Vasappanavara, Anand Vasappanavara, Gautam Vasappanavara
Python Programming by Pearson

Python Programming by Pearson

S.Sridhar, J. Indumathi, V.M. Hariharan

Publisher Resources

ISBN: 9781299486539