nn::math::TinyMt::SaveState Member Function

Syntax

#include <nn/math.h>

void SaveState(
     TinyMt::State * pStateBuffer
);

Parameters

Name Description
in pStateBuffer Buffer where the internal state is saved.

Return Values

None.

Description

Saves the internal state.

Saves the internal state to the specified buffer. The saved internal state can be restored by using RestoreState.

By saving the values obtained with this function, you can re-start random number generation at a later time. You can also use it to reproduce the same series of random numbers.

Revision History

2012/05/11
Initial version.

CONFIDENTIAL