org.flexgen.util
Class ImprovedRandom

java.lang.Object
  extended by java.util.Random
      extended by org.flexgen.util.ImprovedRandom
All Implemented Interfaces:
java.io.Serializable

public class ImprovedRandom
extends java.util.Random

Class implementing logic for an improved random number generator.

See Also:
Serialized Form

Constructor Summary
ImprovedRandom()
           
 
Method Summary
 long nextLong(long n)
          Get a random long between 0 (inclusive) and the specified value (exclusive).
 
Methods inherited from class java.util.Random
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImprovedRandom

public ImprovedRandom()
Method Detail

nextLong

public long nextLong(long n)
Get a random long between 0 (inclusive) and the specified value (exclusive).

Parameters:
n - The upper bound on the random number to be returned. Must be positive.
Returns:
A random long between 0 (inclusive) and the specified value (exclusive).


FlexGen Home

Get FlexGen at SourceForge.net. Fast, secure and Free Open Source software downloads

Copyright © 2009 - Jeffrey J. Weston <jjweston@gmail.com>

All rights reserved. Use is subject to license terms.