GLUS
|
Go to the source code of this file.
Functions | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusRandomSetSeed (const GLUSuint seed) |
Initializes the random generator. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusRandomUniformf (const GLUSfloat start, const GLUSfloat end) |
Returns a uniform distributed random floating point value in the given range. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusRandomNormalf (const GLUSfloat mean, const GLUSfloat standardDeviation) |
Returns a normal distributed random floating point value. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusRandomHammersleyf (GLUSfloat result[2], const GLUSuint sample, const GLUSubyte m) |
Samples two floating point values from a Hammersley point set. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY glusRandomHammersleyf | ( | GLUSfloat | result[2], |
const GLUSuint | sample, | ||
const GLUSubyte | m | ||
) |
Samples two floating point values from a Hammersley point set.
result | The resulting random values. |
sample | The sample to take. Has to be in the range 0 <= sample < 2^m. |
m | Order m, which allows 2^m samples. Has to be in the range 0 < m <= 32. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusRandomNormalf | ( | const GLUSfloat | mean, |
const GLUSfloat | standardDeviation | ||
) |
Returns a normal distributed random floating point value.
mean | Mean. |
standardDeviation | Standard deviation. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusRandomSetSeed | ( | const GLUSuint | seed | ) |
Initializes the random generator.
seed | Number for initializing the pseudo-random number generator. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusRandomUniformf | ( | const GLUSfloat | start, |
const GLUSfloat | end | ||
) |
Returns a uniform distributed random floating point value in the given range.
start | Smallest possible generated value (inclusive). |
end | Largest possible generated value (inclusive). |