nn::math::MersenneTwister::GenerateRandomF64 Member Function

Syntax

#include <nn/math.h>

f64 GenerateRandomF64();

Parameters

None.

Return Values

Returns a double, precision floating-point random number.

Description

Generates a double, precision floating-point random number.

Generates a random number in the range from 0.0 to less than 1.0. The boundary values when the [0.0, 1.0] range is equally divided into 253 segments are returned. In other words, there are 253 types of return values. In addition, the return value does not return values in the range of (0, 1/253) because they would be integral multiples of 1/253.

Revision History

2012/05/11
Initial version.

CONFIDENTIAL