char *initstate(unsigned int seed, char *state, int size);
The seed parameter
specifies a starting point for the random-number sequence and
provides for restarting at the same point. The
After initialization, a state array can be restarted at a different point in one of two ways:
initstate()function can be used, with the desired seed, state array, and size of the array.
setstate()function, with the desired state, can be used, followed by the srandom()function with the desired seed. The advantage of using both of these functions is that the size of the state array does not have to be saved once it is initialized.
Specifies an initial seed value.
Points to the array of state information.
Specifies the size of the state information array.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.