LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::mc::LcgUniform Class Reference

Deterministic uniform [0,1) source, so that a caller who does not have one still has no reason to reach for a global stream. More...

#include <line/api/mc/ctmc_rand.h>

Public Member Functions

 LcgUniform (std::uint64_t seed=20260721ull)
double operator() ()

Detailed Description

Deterministic uniform [0,1) source, so that a caller who does not have one still has no reason to reach for a global stream.

Numerical Recipes' 64-bit linear congruential recurrence, whose high bits are the ones used.

Definition at line 51 of file ctmc_rand.h.

Constructor & Destructor Documentation

◆ LcgUniform()

line::mc::LcgUniform::LcgUniform ( std::uint64_t seed = 20260721ull)
inlineexplicit

Definition at line 53 of file ctmc_rand.h.

Member Function Documentation

◆ operator()()

double line::mc::LcgUniform::operator() ( )
inline

Definition at line 54 of file ctmc_rand.h.


The documentation for this class was generated from the following file: