FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
environment::field::aggregation::Random Class Reference

One random stream. Not thread-safe.

#include <Random.h>

Public Member Functions

 Random (std::uint64_t seed)
 
double Uniform ()
 Uniform in [0, 1), 53 bits.
 
double Uniform (double low, double high)
 Uniform in [low, high).
 
double Normal ()
 Standard normal (Box-Muller, one value per two uniforms; the sine partner is discarded).
 
double Normal (double mean, double sigma)
 Normal with a mean and a standard deviation.
 
double LogNormal (double mu, double sigma)
 exp(Normal(mu, sigma)).
 

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