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

## org.statcato.random
Class UniformSample

    java.lang.Object
      java.util.Random
          org.statcato.random.UniformSample

All Implemented Interfaces:
  java.io.Serializable

    public class UniformSample

extends java.util.Random

A random sampler for a range of uniformly distributed continuous double values.

Since:
  1.0
Version:
  %I%, %G%
Author:
  Margaret Yau
See Also:
  Serialized Form

Constructor Summary
`UniformSample(double minimum, double maximum)` Constructor.

Method Summary
`double` | `nextSample()` Returns the next random sample within [minimum, maximum)

Methods inherited from class java.util.Random
`next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### UniformSample

    public UniformSample(double minimum,
                         double maximum)

  Constructor. The range of uniformly distributed values is [minimum, maximum).

  Parameters:
    `minimum` - inclusive
    `maximum` - exclusive

Method Detail

### nextSample

    public double nextSample()

  Returns the next random sample within [minimum, maximum)

  Returns:
    double

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