Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend