Rice Pastry API

rice.environment.random.simple
Class SimpleRandomSource

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

public class SimpleRandomSource
extends java.lang.Object
implements RandomSource

Version:
$Id: pretty.settings,v 1.3 2005/03/11 20:22:33 jeffh Exp $
Author:
Jeff Hoye

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

Constructor Detail

SimpleRandomSource

public SimpleRandomSource()
Constructor for SimpleRandomSource.


SimpleRandomSource

public SimpleRandomSource(long seed)
Constructor for SimpleRandomSource.

Parameters:
seed - DESCRIBE THE PARAMETER
Method Detail

nextBoolean

public boolean nextBoolean()
DESCRIBE THE METHOD

Specified by:
nextBoolean in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

nextBytes

public void nextBytes(byte[] bytes)
DESCRIBE THE METHOD

Specified by:
nextBytes in interface RandomSource
Parameters:
bytes - DESCRIBE THE PARAMETER

nextDouble

public double nextDouble()
DESCRIBE THE METHOD

Specified by:
nextDouble in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

nextFloat

public float nextFloat()
DESCRIBE THE METHOD

Specified by:
nextFloat in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

nextGaussian

public double nextGaussian()
DESCRIBE THE METHOD

Specified by:
nextGaussian in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

nextInt

public int nextInt()
DESCRIBE THE METHOD

Specified by:
nextInt in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

nextInt

public int nextInt(int max)
DESCRIBE THE METHOD

Specified by:
nextInt in interface RandomSource
Parameters:
max - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

nextLong

public long nextLong()
DESCRIBE THE METHOD

Specified by:
nextLong in interface RandomSource
Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection