Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

setrand

Format: setrand( seed )

Arguments: (real) seed Value used to initialize the random number generators

Returns: (real) The value of seed

Description: Setrand initializes the random number generators. Each time the system is first started, the random number generators are seeded with the current date and time. This ensures that the sequence of numbers generated will be unique for each session. You can explicitly seed the generators using setrand to guarantee that a repeatable sequence of numbers is generated. There is no need to initialize the random number generators using setrand if repeatability is not needed.

Examples: setrand(5) = seeds the random number generators with 5

See Also: rand, drand, trand, nrand, lrand, brand, prand, grand, betarand, crand, correlate

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Online Questionnaires

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend