Java API Tutorial - Random Example








Constructor

  1. Java Random() Constructor
  2. Java Random(long seed) Constructor

Method

  1. Java Random.next(int bits)
  2. Java Random.nextBoolean()
  3. Java Random.nextBytes(byte[] bytes)
  4. Java Random.nextDouble()
  5. Java Random.nextFloat()
  6. Java Random.nextGaussian()
  7. Java Random.nextInt()
  8. Java Random.nextInt(int n)
  9. Java Random.nextLong()
  10. Java Random.setSeed(long seed)