Random

The following functions are used to generate random values with corresponding probability distribution. These functions can be found in the 'Functions and Variables' area of the Property Calculator (for the different areas on the Property Calculator form, see The Property Calculator).

Parameters of these functions can be any calculator expression (not only numeric constants).
Name Generated expression Description Expression example Ex

normal

normal(mean,
standard deviation)

Random value with normal distribution.

normal(0.1, 1.0)

45

lognormal

lognormal(mean,
standard deviation)

Random value with lognormal distribution.

lognormal(1.0, 1.0)

random

random(minimum,
maximum)

Random value with uniform distribution.

random(0.0, 5.0)

triangular

triangular(minimum, maximum, peak value)

Random value with triangular distribution.

triangular(0, 10, 5)

histogram

histogram(minimum, maximum, number1, number2, ...)

Random value with distribution specified by histogram.

Histogram( 0.0, 10.0, 4,3,2,1)

randomD

randomD(minimum, maximum)

Discrete random value (max, min inclusive).

randomD(1,4)

histogramD

histogramD(value1, rate1, value2, rate2, ...)

Discrete random value according to specified histogram.

histogramD( 1, 0.3, 2, 0.7)

46

Example 45 Random property with normal distribution

normal(2,1)

     click to enlarge

Example 46 Discrete random property with specified histogram distribution

histogramD(1, 4, 2, 3, 3, 2, 4, 1, 5, 4)

     click to enlarge