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().

Author:
Jeff Hoye

Method Summary
 boolean nextBoolean()
           
 void nextBytes(byte[] bytes)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int max)
           
 long nextLong()
           
 

Method Detail

nextBoolean

boolean nextBoolean()

nextBytes

void nextBytes(byte[] bytes)

nextDouble

double nextDouble()

nextFloat

float nextFloat()

nextGaussian

double nextGaussian()

nextInt

int nextInt()

nextInt

int nextInt(int max)

nextLong

long nextLong()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection