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.simple
Class SimpleRandomSource

    java.lang.Object
      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()`
`void` | `setLogManager(LogManager manager)`

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

### setLogManager

    public void setLogManager(LogManager manager)

### 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`

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.