Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.