Rice Pastry API

rice.environment.random
Interface RandomSource

All Known Implementing Classes:
SimpleRandomSource

public interface RandomSource

Provides a virtualized random interface for FreePastry. Usually acquired by calling environment.getRandomSource().

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

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
 

Method Detail

nextBoolean

boolean nextBoolean()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

nextBytes

void nextBytes(byte[] bytes)
DESCRIBE THE METHOD

Parameters:
bytes - DESCRIBE THE PARAMETER

nextDouble

double nextDouble()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

nextFloat

float nextFloat()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

nextGaussian

double nextGaussian()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

nextInt

int nextInt()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

nextInt

int nextInt(int max)
DESCRIBE THE METHOD

Parameters:
max - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

nextLong

long nextLong()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.