12 constexpr
int result_items = 4;
22 float_result_type
calculate_float(std::uint64_t seed, std::uint64_t seq);
32 typedef std::uint64_t seed_type;
33 typedef std::uint64_t sequence_type;
41 seed_ = time(
nullptr) + 0xDEADBEEF;
43 std::uint64_t sequence_bump(
size_t items)
45 std::uint64_t cur = sequence_;
49 void seed(std::uint64_t s)
53 std::uint64_t seed()
const 60 std::uint64_t sequence_;
uint_result_type calculate_integer(std::uint64_t seed, std::uint64_t seq)
Get uint32 result in range[0::UINT_MAX].
float_result_type calculate_float(std::uint64_t seed, std::uint64_t seq)
Get float result in range[0.0,1.0f)
std::array< float, result_items > float_result_type
Each round returns 4 items - in range[0.0,1.0f)
Definition: random.hpp:17
std::array< std::uint32_t, result_items > uint_result_type
Each round returns 4 items - result.
Definition: random.hpp:15
Mane namespace.
Definition: context.hpp:9
Definition: random.hpp:30