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

contents.gifindex.gifprev1.gifnext1.gif

rand

Format: rand( x1, x2 )

Arguments: (real) x1 Optional lower limit; default = 0

(real) x2 Optional upper limit; default = 1

Returns: (real) Pseudo-random number between x1 and x2

Description: Rand generates a random number that is equally likely to be any number between the lower and upper limits (x1 <= rand < x2).

The sequence of numbers generated by rand has a period that is essentially infinite. Also, there are no sensible sequential correlations. The random numbers have a granularity of better than 1e-10.

Examples: rand = random number between 0 and 1

rand(5,10) = random number between 5 and 10, PDF graphed below

dph00484.gif

See Also: drand, trand, nrand, lrand, brand, prand, grand, betarand, crand, setrand, 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