25.6 Commands at a glance

Following is a list of mathematical support related commands commonly used in simulation scripts:

This creates a new random number generator.

This command seeds the RNG. If 0 is specified, the RNG is seeded heuristically. Otherwise the RNG is seeded with the value <n>.

This returns the next random number from RNG.

This returns a number uniformly distributed on <a> and <b>.

This returns an integer uniformly distributed on 0 and k-1.

This returns a number that has exponential distribution with average 1.

This creates an instance of a random variable object that generates random variables with specific distribution. The different types of random variables derived from the base class are:

RandomVariable/Uniform, RandomVariable/Exponential, RandomVariable/Pareto, RandomVariable/Constant, RandomVariable/HyperExponential. Each of these distribution types are parameterized with values of appropriate parameters. For details see section 25.2 of this chapter.

This method is used to associated a random variable object with a non-default RNG. Otherwise by default, the random variable object is associated with the default random number generator.

Tom Henderson 2011-11-05