Corelink CPP Client
Corelink C++ client library
 
Loading...
Searching...
No Matches
corelink::utils::random_numbers Namespace Reference

Houses and wraps all utils related to random number generation. More...

Functions

static thread_local std::mt19937_64 mt (rd())
 
CORELINK_EXPORT uint64_t get_random_int ()
 

Variables

static thread_local std::random_device rd
 

Detailed Description

Houses and wraps all utils related to random number generation.

Function Documentation

◆ get_random_int()

CORELINK_EXPORT uint64_t corelink::utils::random_numbers::get_random_int ( )

pseudo-random number generator based on the mersenne prime number generator class using a uniform distribution model

Template Parameters
int_typeC++ integral types
Returns
generated prime number of chosen integral type

◆ mt()

static thread_local std::mt19937_64 corelink::utils::random_numbers::mt ( rd() )
static

Variable Documentation

◆ rd

thread_local std::random_device corelink::utils::random_numbers::rd
static