esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

Become a member to observe this category
Random

This class is useful for generating pseudo-random numbers. You have to provide the Random object with a seed (if you don't, the current time in milliseconds will be taken by default). This is what makes the algorithm pseudo. Using the Random class with the same seed will yield the same random number. Check out the examples for more information on the use.

Featured Books


Subcategories



      Questions & Answers
      = answered, = unanswered

      General:

        How do I generate a random integer between x and y?
        How do I generate a random float between x and y?
        How do I generate a random double between x and y?
        How do I generate a random set of bytes?
        How do I specify my own seed to the random number generator?
        How do I get a random number that is Gaussian Distributed?


      Further Information (sorted alphabetically)
      Api's:

      Related Links:

      Related Books:







      Terms of Service | Privacy Policy | Contact

      Copyright © 2000-2003 Esus.com - All Rights Reserved 
      Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.