The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
random.h File Reference

Random Number Generators. More...

#include <stdint.h>
+ Include dependency graph for random.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Random Number Generators.

Piece-Wise Deterministic Random Number Generators.

Definition in file random.h.

Function Documentation

◆ Expent()

double Expent ( double  mean)

Return a random number according to an Exponential distribution. The mean value of the distribution must be passed as the mean value.

Parameters
meanMean value of the distribution
Returns
A random number

Definition at line 61 of file random.c.

◆ Normal()

double Normal ( void  )

Return a random number according to a Standard Normal Distribution

Returns
A random number

Definition at line 74 of file random.c.