| Applying science to business management |
  
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
See Also: rand, drand, trand, nrand, lrand, brand, prand, grand, betarand, setrand, correlate
|