![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Random Number Generators. More...
#include <lib/random/random.h>
#include <core/intrinsics.h>
#include <lib/lib_internal.h>
#include <lib/random/xoroshiro.h>
#include <math.h>
#include <memory.h>
Go to the source code of this file.
Functions | |
void | random_lib_lp_init (void) |
double | Random (void) |
uint64_t | RandomU64 (void) |
double | Expent (double mean) |
double | Normal (void) |
int | RandomRange (int min, int max) |
int | RandomRangeNonUniform (int x, int min, int max) |
double | Gamma (unsigned ia) |
double | Poisson (void) |
unsigned | Zipf (double skew, unsigned limit) |
Random Number Generators.
Piece-Wise Deterministic Random Number Generators.
Definition in file random.c.
double Expent | ( | double | mean | ) |
double Gamma | ( | unsigned | ia | ) |
double Normal | ( | void | ) |
double Poisson | ( | void | ) |
unsigned Zipf | ( | double | skew, |
unsigned | limit | ||
) |
Return a random sample from a Zipf distribution. Based on the rejection method by Luc Devroye for sampling: "Non-Uniform Random Variate Generation, page 550, Springer-Verlag, 1986
skew | The skew of the distribution |
limit | The largest sample to retrieve |