A PRNG engine using the RomuTrio algorithm. This engine is fully inlined, requires small amount of storage and is very fast and reseedable. https://www.romu-random.org/
Class Generator
#include <Geode/utils/random.hpp>classGenerator{ ... }
Examples0
Public static methods2
staticgeode::utils::random::Generator::result_typemin()
No description provided
staticgeode::utils::random::Generator::result_typemax()
No description provided
Public member functions5
geode::utils::random::Generator::result_typenext()
Generates the next random 64-bit integer
template<typename T>Tgenerate()
Generates a random value of type T For bools, this is either true or false For integral types, this is any value that fits in the type For floating point types, this is a value in the range [0.0, 1.0)
template<typename R = void,typename T,typename Y,typename Out = std::conditional_t<std::is_void_v<R>, std::common_type_t<T, Y>, R>>Outgenerate(Tmin_,Ymax_)
Generates a random value of type R (if specified), in the range [min, max), meaning the max value can never be returned
geode::utils::random::Generator::result_typeoperator()()
No description provided