RandLib 2.0.0
Probability distributions, fitting, and heavy-tail tools for C++20
Loading...
Searching...
No Matches
randlib::legacy::JKissEngine Class Reference

The JKissEngine class
David Jones' JKISS generator with 32-bit output. More...

#include <legacy.hpp>

Public Types

using result_type = std::uint32_t
 

Public Member Functions

 JKissEngine (std::uint64_t value=0) noexcept
 
void seed (std::uint64_t value) noexcept
 
result_type operator() () noexcept
 

Static Public Member Functions

static constexpr result_type min () noexcept
 
static constexpr result_type max () noexcept
 

Friends

bool operator== (const JKissEngine &, const JKissEngine &)=default
 

Detailed Description

The JKissEngine class
David Jones' JKISS generator with 32-bit output.

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ JKissEngine()

randlib::legacy::JKissEngine::JKissEngine ( std::uint64_t  value = 0)
inlineexplicitnoexcept

Member Function Documentation

◆ max()

static constexpr result_type randlib::legacy::JKissEngine::max ( )
inlinestaticconstexprnoexcept

◆ min()

static constexpr result_type randlib::legacy::JKissEngine::min ( )
inlinestaticconstexprnoexcept

◆ operator()()

result_type randlib::legacy::JKissEngine::operator() ( )
inlinenoexcept

◆ seed()

void randlib::legacy::JKissEngine::seed ( std::uint64_t  value)
inlinenoexcept

xorshift state must not be zero

carry in [1, a - 2]

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const JKissEngine &  ,
const JKissEngine &   
)
friend

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