Contents Previous Next Subchapters

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

Description
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.

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