|
RandX 1.4.3
基于 xoshiro/xoroshiro 算法族的纯头文件伪随机数生成器库
|
#include <RandX.hpp>
Public 类型 | |
| using | result_type = ResultType |
| using | state_type = std::array<ResultType, N> |
| using | result_type = ResultType |
| using | state_type = std::array<ResultType, N> |
Public 成员函数 | |
| constexpr void | discard (unsigned long long z) noexcept |
| constexpr state_type | serialize () const noexcept |
| constexpr void | deserialize (const state_type &s) noexcept |
| constexpr void | discard (unsigned long long z) noexcept |
| constexpr state_type | serialize () const noexcept |
| constexpr void | deserialize (const state_type &s) noexcept |
静态 Public 成员函数 | |
| static constexpr result_type | min () noexcept |
| static constexpr result_type | max () noexcept |
| static constexpr result_type | min () noexcept |
| static constexpr result_type | max () noexcept |
Protected 成员函数 | |
| EngineBase ()=default | |
| constexpr | EngineBase (const state_type &state) noexcept |
| template<class SeedSeq> requires (!std::same_as<std::remove_cvref_t<SeedSeq>, state_type> && !std::same_as<std::remove_cvref_t<SeedSeq>, Derived>) | |
| constexpr | EngineBase (SeedSeq &seq) |
| constexpr | EngineBase (std::uint64_t seed) noexcept |
| template<std::size_t K> | |
| constexpr void | jumpPoly (const ResultType(&poly)[K]) noexcept |
| EngineBase ()=default | |
| constexpr | EngineBase (const state_type &state) noexcept |
| template<class SeedSeq, std::enable_if_t<!std::is_same_v< std::decay_t< SeedSeq >, state_type > &&!std::is_same_v< std::decay_t< SeedSeq >, Derived > > * = nullptr> | |
| constexpr | EngineBase (SeedSeq &seq) |
| constexpr | EngineBase (std::uint64_t seed) noexcept |
| template<std::size_t K> | |
| constexpr void | jumpPoly (const ResultType(&poly)[K]) noexcept |
Protected 属性 | |
| state_type | s_ {} |
静态 Protected 属性 | |
| static constexpr int | Bits = static_cast<int>(sizeof(ResultType) * 8) |
友元 | |
| auto | operator<=> (const EngineBase &, const EngineBase &)=default |
| bool | operator== (const EngineBase &lhs, const EngineBase &rhs) noexcept |
| bool | operator!= (const EngineBase &lhs, const EngineBase &rhs) noexcept |
| using RandX::detail::EngineBase< Derived, ResultType, N >::result_type = ResultType |
| using RandX::detail::EngineBase< Derived, ResultType, N >::state_type = std::array<ResultType, N> |
|
protecteddefault |
|
inlineexplicitconstexprprotectednoexcept |
|
inlineexplicitconstexprprotected |
|
inlineexplicitconstexprprotectednoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprprotectednoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
friend |
|
friend |