Go to: Synopsis. Return value. Related. MEL examples.
seed
[<string>] <int>
seed is undoable, queryable, and editable.
This command seeds the generation of random numbers allowing repeatable sequences of random numbers. The seed function affects rand, sphrand and gauss. Multiple random number streams:seed 7718; // Result: 7718 // rand 1; // Result: 0.540686 // rand 1; // Result: 0.107317 // seed 7718; // Result: 7718 // rand 1; // Result: 0.540686 // rand 1; // Result: 0.107317 // string $s1 = "stream1"; // Result: stream1 // seed $s1 7718; // Result: 7718 // rand $s1 1; // Result: 0.540686 //