next up previous contents
Next: Random Seeding Up: Randomization Previous: The Random Function

Planting a Seed

The SetRand function allows users to define their own seed value.

> # restart Darwin
> SetRand(5);
> Rand();
0.3377
> Rand();
0.5751



Gaston Gonnet
1998-09-15