ePOST API

rice.environment.random.simple
Class SimpleRandomSource

java.lang.Object
  extended by rice.environment.random.simple.SimpleRandomSource
All Implemented Interfaces:
RandomSource

public class SimpleRandomSource
extends java.lang.Object
implements RandomSource

Author:
Jeff Hoye

Constructor Summary
SimpleRandomSource(LogManager manager)
           
SimpleRandomSource(LogManager manager, java.lang.String instance)
           
SimpleRandomSource(long seed, LogManager manager)
           
SimpleRandomSource(long seed, LogManager manager, java.lang.String instance)
           
 
Method Summary
 boolean nextBoolean()
           
 void nextBytes(byte[] bytes)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int max)
           
 long nextLong()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.