nl.tudelft.simulation.jstats.streams
Class DX120Generator

java.lang.Object
  extended by nl.tudelft.simulation.jstats.streams.RandomNumberGenerator
      extended by nl.tudelft.simulation.jstats.streams.DX120Generator
All Implemented Interfaces:
Serializable, StreamInterface

public class DX120Generator
extends RandomNumberGenerator

The DX-120-4 pseudo random number generator. This generator is described in A System of High-dimensional, Efficient, Long-cycle and Portable Uniform Random Number Generators .

(c) copyright 2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:42 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.jstats.streams.RandomNumberGenerator
seed
 
Constructor Summary
DX120Generator()
          constructs a new LC48Generator.
DX120Generator(long seed)
          constructs a new LC48Generator
 
Method Summary
protected  long next(int bits)
          returns the next value in the stream.
 void setSeed(long seed)
          sets the seed of the generator
 
Methods inherited from class nl.tudelft.simulation.jstats.streams.RandomNumberGenerator
getSeed, nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong, reset, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DX120Generator

public DX120Generator()
constructs a new LC48Generator. the seed value used equals System.currentTimeMillis()


DX120Generator

public DX120Generator(long seed)
constructs a new LC48Generator

Parameters:
seed - the seed
Method Detail

next

protected long next(int bits)
Description copied from class: RandomNumberGenerator
returns the next value in the stream.

Specified by:
next in class RandomNumberGenerator
Parameters:
bits - the number of bits used
Returns:
the next value.
See Also:
RandomNumberGenerator.next(int)

setSeed

public void setSeed(long seed)
Description copied from interface: StreamInterface
sets the seed of the generator

Specified by:
setSeed in interface StreamInterface
Specified by:
setSeed in class RandomNumberGenerator
Parameters:
seed - the new seed
See Also:
StreamInterface.setSeed(long)


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.