tetl 0.1.0
Embedded Template Library
|
https://en.wikipedia.org/wiki/Xorshift More...
#include <xorshift.hpp>
Public Types | |
using | result_type = UInt |
Public Member Functions | |
constexpr | xorshift ()=default |
constexpr | xorshift (result_type seed) noexcept |
constexpr auto | discard (unsigned long long z) noexcept -> void |
constexpr auto | operator() () noexcept -> result_type |
constexpr auto | seed (result_type value=default_seed) noexcept -> void |
Static Public Member Functions | |
static constexpr auto | max () noexcept -> result_type |
static constexpr auto | min () noexcept -> result_type |
Static Public Attributes | |
static constexpr auto | default_seed = result_type{5489U} |
Friends | |
constexpr auto | operator== (xorshift const &lhs, xorshift const &rhs) noexcept -> bool |
Related Symbols | |
(Note that these are not member symbols.) | |
using | xorshift16 = xorshift< uint16_t, 7, 9, 8 > |
16-bit pseudo number generator | |
using | xorshift32 = xorshift< uint32_t, 13, 17, 5 > |
32-bit pseudo number generator | |
using | xorshift64 = xorshift< uint64_t, 13, 7, 17 > |
64-bit pseudo number generator | |
https://en.wikipedia.org/wiki/Xorshift
using result_type = UInt |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
friend |
|
staticconstexpr |