45 int get_int(
int low = 0,
int high = 1) const noexcept;
52 [[nodiscard]] std::vector<
int>
get_vector_ints(
int low = 0,
int high = 1,
int count = 1) const noexcept;
58 [[nodiscard]]
float get_float(
float low = 0.0f,
float high = 1.0f) const noexcept;
62 void seed(
unsigned long long seed = 0) const noexcept;
68 int operator()(const
int low, const
int high) const noexcept
74 class randomizer_impl;
76 std::unique_ptr<randomizer_impl> m_impl;
Provides random-number generating capabilities.
Definition randomizer.h:15
void seed(unsigned long long seed=0) const noexcept
Seeds the random number generator with the given seed value.
int get_int(int low=0, int high=1) const noexcept
Generates a random integer within a specified range.
randomizer(randomizer &&other) noexcept
Move constructor.
randomizer & operator=(randomizer &&other) noexcept
Move assignment operator.
std::vector< int > get_vector_ints(int low=0, int high=1, int count=1) const noexcept
Generates a shuffled vector of all integers in the specified range.
randomizer()
Default constructor.
randomizer & operator=(const randomizer &other)
Copy assignment operator.
float get_float(float low=0.0f, float high=1.0f) const noexcept
Generates a random float within a specified range.
randomizer(const randomizer &other)
Copy constructor.