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