This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes ramdom class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ramdom class" Watch "ramdom class" New topic
Author

ramdom class

AJ sisodia
Greenhorn

Joined: Jan 19, 2005
Posts: 16
How and when to use Random class.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
When to use: Whenever you need something in random. If you need a random number, use the Random API. If you need a random String, use the Random API & build the String based on the output.

How to use: Check the API of java.util.Random class


Mani
Quaerendo Invenietis
 
jQuery in Action, 2nd edition
 
subject: ramdom class
 
Similar Threads
can non-static inner class access any member
andrew has wii
Doubt about diagram class
WA #1.....word association
Doubt about diagram class (realization)