49 num_threads(num_threads_)
71 const int num_threads_,
73 num_threads(num_threads_)
90 for (
int thread_id=0; thread_id < this->
num_threads; ++thread_id)
126 for (
int thread_id=0; thread_id < this->
num_threads; ++thread_id)
132 for (
int j=0; j < thread_id+1; ++j)
void initialize(int64_t seed)
Initializes an array of xoshiro_256_star_star objects.
Xoshiro256StarStar ** xoshiro_256_star_star
RandomNumberGenerator()
Initializes with one parallel thread and default seed.
uint64_t next(const int thread_id)
Generates the next random number in the sequence, depending on the thread id.
~RandomNumberGenerator()
Deallocates the array of xoshiro_256_star_star.
Pseudo-random integer generator. This class generates 64-bit integer using Xoshiro256** algorithm.
uint64_t next()
Generates the next presudo-random number.
void jump()
Jump function for the generator. It is equivalent to 2^128 calls to next(); it can be used to generat...