nn::math::MersenneTwister::SaveState Member Function#include <nn/math.h>
void SaveState(
MersenneTwister::State * pStateBuffer
);
| Name | Description | |
|---|---|---|
| in | pStateBuffer |
Buffer where the internal state is saved. |
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.
CONFIDENTIAL