nn::math::TinyMt::RestoreState Member Function

Syntax

#include <nn/math.h>

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

Parameters

Name Description
in pStateBuffer The number of array elements indicated by pSeed.

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