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

contents.gifindex.gifprev1.gifnext1.gif

crand

Format: crand( f(x), x, x1, x2, max )

Arguments: (real) f(x) Probability density function

(node) x Name of the input variable in f(x)

(real) x1 Lower limit

(real) x2 Upper limit

(real) max Maximum value of f(x) in the range x1 to x2

Returns: (real) Pseudo-random number from a custom distribution defined by f(x)

Description: Crand generates a random number that is drawn from a custom distribution. The number returned by crand is in the range x1 to x2. The likelihood of being any particular number in this range is defined by the function f(x).

Examples: crand(25-(x-5)^2,x,0,10,25) = random number from the quadratic distribution below

dph00448.gif

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