Back to Adaptive Vision Library website
You are here: Start » Function Reference » Random » RandomReal
RandomReal
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Creates random real value in given closed interval.
Syntax
void avl::RandomReal ( RandomSeed_OfState& ioState, const atl::real inMinValue, const atl::real inMaxValue, atl::Optional<int> inSeed, atl::real& outValue )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
| ioState | RandomSeed_OfState& | Object used to maintain state of the function. | ||
![]() |
inMinValue | const real | Minimal generated value | |
![]() |
inMaxValue | const real | 1.0f | Maximal generated value |
![]() |
inSeed | Optional<int> | NIL | Random seed used to generate values |
![]() |
outValue | real& |
Errors
| Error type | Description |
|---|---|
| DomainError | Value of inMinValue is greater than value of inMaxValue. |


