Definition in file random.c.
Go to the source code of this file.
Defines | |
| #define | QNAN sqrt(-1) |
Functions | |
| int | random_apply (char *group_expression, char *property, RANDOMTYPE type,...) |
| Apply a random number to property of a group of objects. | |
| double | random_bernoulli (double p) |
| Generate a Bernoulli distributed random number. | |
| double | random_degenerate (double a) |
| Generate the same number always. | |
| double | random_exponential (double lambda) |
| Generate an exponentially distributed random number. | |
| int | random_init (void) |
| double | random_lognormal (double gmu, double gsigma) |
| Generate a log Gaussian distributed random number. | |
| double | random_normal (double m, double s) |
| Generate a Gaussian distributed random number. | |
| double | random_pareto (double m, double k) |
| Generate a Pareto distributed random number. | |
| double | random_sampled (unsigned n, double *x) |
| Generate a number randomly sample uniformly from a list. | |
| int | random_test (void) |
| Test random distributions. | |
| RANDOMTYPE | random_type (char *name) |
| Converts a distribution name to a RANDOMTYPE. | |
| double | random_uniform (double a, double b) |
| Generate a uniformly distributed random number. | |
| double | random_value (RANDOMTYPE type,...) |
| Generate a random value. | |
| double | randunit (void) |