Contents Previous Next Subchapters

Using Time To Seed Random Number Generation
Syntax ranseed
See Also seed , unirnd , normrnd

Seeds the O-Matrix random number generator, using the system clock. The seed depends on the day of the month, hour, minute, and second of the day, so that it will be different each time the function is called.

     rand(1, 1)
returns the value
where as
     rand(1, 1)
returns a value that is different each time