rice.environment.random.simple
Class SimpleRandomSource
java.lang.Object
rice.environment.random.simple.SimpleRandomSource
- All Implemented Interfaces:
- RandomSource
public class SimpleRandomSource
- extends java.lang.Object
- implements RandomSource
- Author:
- Jeff Hoye
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRandomSource
public SimpleRandomSource(long seed,
LogManager manager,
java.lang.String instance)
SimpleRandomSource
public SimpleRandomSource(long seed,
LogManager manager)
SimpleRandomSource
public SimpleRandomSource(LogManager manager)
SimpleRandomSource
public SimpleRandomSource(LogManager manager,
java.lang.String instance)
setLogManager
public void setLogManager(LogManager manager)
nextBoolean
public boolean nextBoolean()
- Specified by:
nextBoolean
in interface RandomSource
nextBytes
public void nextBytes(byte[] bytes)
- Specified by:
nextBytes
in interface RandomSource
nextDouble
public double nextDouble()
- Specified by:
nextDouble
in interface RandomSource
nextFloat
public float nextFloat()
- Specified by:
nextFloat
in interface RandomSource
nextGaussian
public double nextGaussian()
- Specified by:
nextGaussian
in interface RandomSource
nextInt
public int nextInt()
- Specified by:
nextInt
in interface RandomSource
nextInt
public int nextInt(int max)
- Specified by:
nextInt
in interface RandomSource
nextLong
public long nextLong()
- Specified by:
nextLong
in interface RandomSource
Copyright © 2001-2005 - Rice Pastry.