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

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

Constructor Summary
`SimpleRandomSource(LogManager manager)` Constructor for SimpleRandomSource.
`SimpleRandomSource(LogManager manager, java.lang.String instance)` Constructor for SimpleRandomSource.
`SimpleRandomSource(long seed, LogManager manager)` Constructor for SimpleRandomSource.
`SimpleRandomSource(long seed, LogManager manager, java.lang.String instance)` 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(long seed,
                              LogManager manager,
                              java.lang.String instance)

  Constructor for SimpleRandomSource.

Parameters:
  `seed` - DESCRIBE THE PARAMETER
  `manager` - DESCRIBE THE PARAMETER
  `instance` - DESCRIBE THE PARAMETER

### SimpleRandomSource

    public SimpleRandomSource(long seed,
                              LogManager manager)

  Constructor for SimpleRandomSource.

Parameters:
  `seed` - DESCRIBE THE PARAMETER
  `manager` - DESCRIBE THE PARAMETER

### SimpleRandomSource

    public SimpleRandomSource(LogManager manager)

  Constructor for SimpleRandomSource.

Parameters:
  `manager` - DESCRIBE THE PARAMETER

### SimpleRandomSource

    public SimpleRandomSource(LogManager manager,
                              java.lang.String instance)

  Constructor for SimpleRandomSource.

Parameters:
  `manager` - DESCRIBE THE PARAMETER
  `instance` - 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

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.