Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

drand

Format: drand( x1, x2 )

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

(int) x2 Optional upper limit; default = 1

Returns: (int) Pseudo-random integer between x1 and x2 inclusive

Description: Drand generates a random number that is equally likely to be any integer between the lower and upper limits.

The sequence of numbers generated by drand has a period that is essentially infinite. Also, there are no sensible sequential correlations.

Examples: drand = random number, 0 or 1

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

dph00460.gif

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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Website 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