Vanguard Software
Forecasting & Planning Solutions

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

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

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 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