| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | utility | |
| Module | mathematics | |
| Tool | randomnumbers |
Alpha parameter must be a non-zero number and beta can be any
value. The result will be floating point numbers in the range
0 < x <
. The shape can be either an integer or a vector of
integers where all the values are greater than zero. The default
value of one will produce a scalar output.
| alpha | in | The alpha parameter | |
| Allowed: | double | ||
| Default: | 1.0 | ||
| beta | in | The beta parameter | |
| Allowed: | double | ||
| Default: | 1.0 | ||
| shape | in | Shape of the output array | |
| Allowed: | integer or a vector of integers | ||
| Default: | 1 | ||
include 'randomnumbers.g'
rand := randomnumbers();
numbers := rand.weibull(1.5, 8, 12);
rand.done()
This example will calculate twelve weibull random numbers, storing
the result in a vector.