Back to FabImage Library website
You are here: Start » Function Reference » Basic » Random » RandomReal
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates random real value in given closed interval.
Syntax
void fil::RandomReal ( RandomState& ioState, const float inMinValue, const float inMaxValue, ftl::Optional<int> inSeed, float& outValue )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
ioState | RandomState& | Object used to maintain state of the function. | |
![]() |
inMinValue | const float | Minimal generated value | |
![]() |
inMaxValue | const float | 1.0f | Maximal generated value |
![]() |
inSeed | Optional<int> | NIL | Random seed used to generate values |
![]() |
outValue | float& |
Remarks
This filter should not be used for generating cryptographically secure random numbers.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Value of inMinValue is greater than value of inMaxValue. |