Definition in file random.h.
Go to the source code of this file.
Enumerations | |
| enum | RANDOMTYPE { RT_INVALID = -1, RT_DEGENERATE, RT_UNIFORM, RT_NORMAL, RT_LOGNORMAL, RT_BERNOULLI, RT_PARETO, RT_EXPONENTIAL, RT_SAMPLED } |
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. | |
| 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) |