Flow
Documentation for the Flow C++ Library
Loading...
Searching...
No Matches
flow_random_algorithm.h File Reference
#include <algorithm>
#include <concepts>
#include <random>

Go to the source code of this file.

Namespaces

namespace  flow

Functions

template<typename T>
requires std::integral<T> || std::floating_point<T>
flow::getRandomNumber (T lower, T upper)
 Produces a random number uniformly distributed on the closed interval [lower, upper].
template<std::random_access_iterator It>
void flow::shuffle (It begin, It end)
 Randomly shuffle the elements in the range [begin, end).