<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::rand_generator Class Reference

Random number generator. More...

#include <MatrixMarket.hpp>

Public Member Functions

constexpr uint32_t operator() ()
 Generates a pseudo-random number.
 
constexpr void seed (uint64_t s) noexcept
 

Static Public Member Functions

static constexpr uint32_t max () noexcept
 
static constexpr uint32_t min () noexcept
 

Detailed Description

Random number generator.

This is a simple random number generator that generates a sequence of pseudo-random numbers using a linear congruential generator (LCG).

The LCG is defined by the recurrence relation:

\[ X_{n+1} = (a X_n + c) \mod m \]

where \(X_0\) is the seed, \(a\) is the multiplier, \(c\) is the increment, and \(m\) is the modulus.


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