#include <SFMT.hpp>
|
static constexpr result_type | min () noexcept |
| 生成される乱数の最小値を返します。 | Returns the minimum value potentially generated by the random-number engine More...
|
|
static constexpr result_type | max () noexcept |
| 生成される乱数の最大値を返します。 | Returns the maximum value potentially generated by the random-number engine. More...
|
|
◆ result_type
生成される整数値の型 | The integral type generated by the engine
◆ State_t
◆ SFMT19937_64() [1/3]
SIV3D_NODISCARD_CXX20 s3d::PRNG::SFMT19937_64::SFMT19937_64 |
( |
| ) |
|
乱数エンジンを作成し、内部状態を非決定的な乱数で初期化します。 | Constructs the engine and initializes the state with non-deterministic random numbers
◆ SFMT19937_64() [2/3]
SIV3D_NODISCARD_CXX20 s3d::PRNG::SFMT19937_64::SFMT19937_64 |
( |
uint64 |
seed | ) |
|
|
explicitnoexcept |
乱数エンジンを作成し、内部状態を初期化します。 | Constructs the engine and initializes the state.
- Parameters
-
seed | 内部状態の初期化に使われるシード値 | seed value to use in the initialization of the internal state |
◆ SFMT19937_64() [3/3]
SIV3D_NODISCARD_CXX20 s3d::PRNG::SFMT19937_64::SFMT19937_64 |
( |
const std::array< uint64, SeedSequencCount > & |
seeds | ) |
|
|
explicitnoexcept |
◆ deserialize()
constexpr void s3d::PRNG::SFMT19937_64::deserialize |
( |
const State_t & |
data | ) |
|
|
constexprnoexcept |
◆ generateReal()
double s3d::PRNG::SFMT19937_64::generateReal |
( |
| ) |
|
|
noexcept |
[0, 1) の範囲の乱数を生成します。 | Generates a pseudo-random value in [0, 1)
- Returns
- 生成された乱数 | A generated pseudo-random value
◆ max()
static constexpr result_type s3d::PRNG::SFMT19937_64::max |
( |
| ) |
|
|
staticconstexprnoexcept |
生成される乱数の最大値を返します。 | Returns the maximum value potentially generated by the random-number engine.
- Returns
- 生成される乱数の最大値 | The maximum potentially generated value
◆ min()
static constexpr result_type s3d::PRNG::SFMT19937_64::min |
( |
| ) |
|
|
staticconstexprnoexcept |
生成される乱数の最小値を返します。 | Returns the minimum value potentially generated by the random-number engine
- Returns
- 生成される乱数の最小値 | The minimum potentially generated value
◆ operator()()
乱数を生成します。 | Generates a pseudo-random value.
- Returns
- 生成された乱数 | A generated pseudo-random value
◆ seed() [1/2]
◆ seed() [2/2]
void s3d::PRNG::SFMT19937_64::seed |
( |
uint64 |
seed | ) |
|
|
noexcept |
◆ serialize()
constexpr const State_t& s3d::PRNG::SFMT19937_64::serialize |
( |
| ) |
const |
|
constexprnoexcept |
◆ SeedSequencCount
constexpr size_t s3d::PRNG::SFMT19937_64::SeedSequencCount = 16 |
|
staticconstexpr |
The documentation for this class was generated from the following file: