The following table lists the random functions supported by Rational Statemate
Argument Type Return Type Accepts two arguments, wheren>0
and0<p<1
. The returned random values are real numbers distributed according to a binomial distribution.Function:X ~ B(n,p)
Returns random real values distributed exponentially by the valuet
.Use the syntaxx=rand_exponential(t)
to makex
equal to a randomly generated number. The syntaxx=random_exponential
(t)
is accepted, but it makesx
equal to the first value in an array calledrandom_exponential
. Returns random integer values distributed according to a uniform distribution in the interval[a,b]
. Returns random real values distributed according to a normal distribution. Returns random integer values distributed according to a poisson distribution. Returns random real values distributed according to a uniform distribution in the interval[a,b]
. Returns a random real value distributed uniformly between 0 and 1.If the passed argument is not 0, a new sequence of random values, whose seed is the parameter,i
, is initialized.Because Rational Statemate initiates a session with the same seed for random functions, two consecutive executions will behave identically. The advantage to this behavior is that you can reconstruct a particular execution scenario. New scenarios are produced by providing different seeds.