Back to Aurora Vision Library Lite website

You are here: Start » Basic » Random » RandomReal

RandomReal


Header: STD.h
Namespace: avl

Creates random real value in given closed interval.

Syntax

void avl::RandomReal
(
	RandomState& ioState,
	const float inMinValue,
	const float inMaxValue,
	atl::Optional<int> inSeed,
	float& outValue
)

Parameters

Name Type Default Description
Input will be modified ioState RandomState& Object used to maintain state of the function.
Input value inMinValue const float Minimal generated value
Input value inMaxValue const float 1.0f Maximal generated value
Input value inSeed Optional<int> NIL Random seed used to generate values
Output value 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.