|
Flow
Documentation for the Flow C++ Library
|
#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> | |
| 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). | |