Vanguard Software
Forecasting & Planning Solutions

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

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