nn::math::MersenneTwister::RestoreState Member Function

Syntax

#include <nn/math.h>

void RestoreState(
     const MersenneTwister::State * pStateBuffer
);

Parameters

Name Description
in pStateBuffer Buffer storing the internal state to restore.

Return Values

None.

Description

Restores the internal state.

Restores the internal state saved with the SaveState function. By doing so, you can re-start the generation of random numbers from the saved state.

This function can be used instead of the Initialize function.

Revision History

2012/05/11
Initial version.

CONFIDENTIAL