Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: randomnumbers.done - Function Up: randomnumbers - Tool Previous: randomnumbers.weibull - Function


randomnumbers.reseed - Function



Package utility
Module mathematics
Tool randomnumbers


Set the seed used by the random number generator.


Synopsis
reseed(seed)


Description
The pseudo-random number generator that is used by the randomnumbers tool can be set to different states, which will make it generate different random numbers. Specifying a number as the argument to this function you will produce a repeatable sequence of random numbers. Alternatively if you use the default value of unset then the glish random function will be used to generate the seed and the resulting random numbers will not be a repeatable sequence.



Arguments

seed in seed
    Allowed: double or unset
    Default: unset


Returns
T


Example
See the example in the randomnumbers tool description.



next up previous contents index
Next: randomnumbers.done - Function Up: randomnumbers - Tool Previous: randomnumbers.weibull - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15