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

## com.epochx.random
Interface RandomNumberGenerator

All Known Implementing Classes:
  JavaRandom, MersenneTwisterFast

    public interface RandomNumberGenerator

Method Summary
`boolean` | `nextBoolean()` Get the next boolean
`double` | `nextDouble()` Get the next double 0<=x<1
`int` | `nextInt()` Get the next int
`int` | `nextInt(int n)` Get the next int, where n is max
`void` | `setSeed(long l)` Set the seed

Method Detail

### nextInt

    int nextInt(int n)

  Get the next int, where n is max

  Parameters:
    `n` - max in value
  Returns:
    next random int

### nextInt

    int nextInt()

  Get the next int

  Returns:
    next int

### nextDouble

    double nextDouble()

  Get the next double 0<=x<1

  Returns:
    next double

### nextBoolean

    boolean nextBoolean()

  Get the next boolean

  Returns:
    next boolean

### setSeed

    void setSeed(long l)

  Set the seed

  Parameters:
    `l` - seed

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