Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

randstate string

randstate is NOT undoable, NOT queryable, and NOT editable.

The command returns the "state" of the random stream named by the string argument. This state information comprises a set of numbers which can be used by an external process (for example, a user-written plug-in) to emulate the random number sequence which is generated by MEL's random number functions.

Return value

vector State values

Related

delrandstr, gauss, rand, seed, sphrand

MEL examples

randstate "stream1";
// Result: 13733 45971 2693 //