Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::RandomEngine Concept Reference

Concept for random number engines compatible with std distributions. More...

#include <random.hpp>

Concept definition

template<typename T>
concept helios::RandomEngine = requires(T engine) {
typename T::result_type;
{ engine() } -> std::convertible_to<typename T::result_type>;
{ T::min() } -> std::convertible_to<typename T::result_type>;
{ T::max() } -> std::convertible_to<typename T::result_type>;
}
Concept for random number engines compatible with std distributions.
Definition random.hpp:21

Detailed Description

Concept for random number engines compatible with std distributions.

Requires presence of result_type, operator(), and min()/max() members.

Definition at line 21 of file random.hpp.