This is a subclass of Random that generates numbers uniformly distributed within a specified range.
More...
|
| | Uniform () |
| | Create a new random number generator that produces values uniformly distributed between 0 (inclusive) and 1 (exclusive). More...
|
| |
| | Uniform (Real min, Real max) |
| | Create a new random number generator that produces values uniformly distributed between min (inclusive) and max (exclusive). More...
|
| |
| int | getIntValue () |
| | Get a random integer, uniformly distributed between 0 (inclusive) and max (exclusive). More...
|
| |
| Real | getMin () const |
| | Get the lower end of the range in which values are uniformly distributed. More...
|
| |
| void | setMin (Real min) |
| | Set the lower end of the range in which values are uniformly distributed. More...
|
| |
| Real | getMax () const |
| | Get the upper end of the range in which values are uniformly distributed. More...
|
| |
| void | setMax (Real max) |
| | Set the upper end of the range in which values are uniformly distributed. More...
|
| |
Public Member Functions inherited from SimTK::Random |
| | ~Random () |
| |
| void | setSeed (int seed) |
| | Reinitialize this random number generator with a new seed value. More...
|
| |
| Real | getValue () const |
| | Get the next value in the pseudo-random sequence. More...
|
| |
| void | fillArray (Real array[], int length) const |
| | Fill an array with values from the pseudo-random sequence. More...
|
| |
|
| UniformImpl & | getImpl () |
| |
| const UniformImpl & | getConstImpl () const |
| |
Protected Member Functions inherited from SimTK::Random |
| | Random () |
| | This constructor should never be invoked directly. More...
|
| |
| RandomImpl & | getImpl () |
| | Get the internal object which implements the random number generator. More...
|
| |
| const RandomImpl & | getConstImpl () const |
| | Get a constant reference to the internal object which implements the random number generator. More...
|
| |
This is a subclass of Random that generates numbers uniformly distributed within a specified range.
◆ Uniform() [1/2]
Create a new random number generator that produces values uniformly distributed between 0 (inclusive) and 1 (exclusive).
◆ Uniform() [2/2]
Create a new random number generator that produces values uniformly distributed between min (inclusive) and max (exclusive).
◆ getIntValue()
| int SimTK::Random::Uniform::getIntValue |
( |
| ) |
|
Get a random integer, uniformly distributed between 0 (inclusive) and max (exclusive).
◆ getMin()
| Real SimTK::Random::Uniform::getMin |
( |
| ) |
const |
Get the lower end of the range in which values are uniformly distributed.
◆ setMin()
| void SimTK::Random::Uniform::setMin |
( |
Real |
min | ) |
|
Set the lower end of the range in which values are uniformly distributed.
◆ getMax()
| Real SimTK::Random::Uniform::getMax |
( |
| ) |
const |
Get the upper end of the range in which values are uniformly distributed.
◆ setMax()
| void SimTK::Random::Uniform::setMax |
( |
Real |
max | ) |
|
Set the upper end of the range in which values are uniformly distributed.
◆ getImpl()
| UniformImpl& SimTK::Random::Uniform::getImpl |
( |
| ) |
|
|
protected |
◆ getConstImpl()
| const UniformImpl& SimTK::Random::Uniform::getConstImpl |
( |
| ) |
const |
|
protected |
The documentation for this class was generated from the following file: