Skip to content

Class Ase::Mwc256

ClassList > Ase > Mwc256

Marsaglia multiply-with-carry generator, period ca 2^255.

  • #include <randomhash.hh>

Public Static Attributes

Type Name
constexpr uint64_t MWC_A3 = = 0xff377e26f82da74a

Public Functions

Type Name
Mwc256 (uint64_t x, uint64_t y=0, uint64_t z=0, uint64_t c=1)
Mwc256 ()
Mwc256 (const Mwc256 &) = default
Mwc256 clone128 ()
Mwc256 clone192 ()
uint64_t next ()
Mwc256 & operator= (const Mwc256 &) = default
void seed ()
void seed (uint64_t x, uint64_t y=0, uint64_t z=0, uint64_t c=1)

Public Static Attributes Documentation

variable MWC_A3

constexpr uint64_t Ase::Mwc256::MWC_A3;

Public Functions Documentation

function Mwc256 [1/3]

explicit Ase::Mwc256::Mwc256 (
    uint64_t x,
    uint64_t y=0,
    uint64_t z=0,
    uint64_t c=1
) 

function Mwc256 [2/3]

explicit Ase::Mwc256::Mwc256 () 

function Mwc256 [3/3]

Ase::Mwc256::Mwc256 (
    const Mwc256 &
) = default

function clone128

Mwc256 Ase::Mwc256::clone128 () 

function clone192

Mwc256 Ase::Mwc256::clone192 () 

function next

inline uint64_t Ase::Mwc256::next () 

function operator=

Mwc256 & Ase::Mwc256::operator= (
    const Mwc256 &
) = default

function seed [1/2]

void Ase::Mwc256::seed () 

function seed [2/2]

void Ase::Mwc256::seed (
    uint64_t x,
    uint64_t y=0,
    uint64_t z=0,
    uint64_t c=1
) 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/randomhash.hh