random

random

  • @static

Constructor

random(whatopt, degreeopt) → {double}

Description:
  • Returns a deterministic pseudo-random number.

    • This function is accessible via the aidesys:: prefix.
Parameters:
Name Type Attributes Default Description
what char <optional>
"uniform"

Random distribution.

  • 'u', "uniform": drawn from a uniform distribution in [0, 1] (degree is not used).
  • 'n', "normal": drawn from a Gaussian normal distribution (degree is not used).
  • 'g', "gamma": drawn from a Gamma distribution, of a given degree.
degree uint <optional>
1

The Gamma distribution degree.

Returns:

A random number.

Type
double