galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Random.hpp File Reference
#include <random>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include "galaxy/meta/Concepts.hpp"
+ Include dependency graph for Random.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Timer.hpp galaxy.
 
namespace  galaxy::math
 

Typedefs

template<typename Type >
using galaxy::math::conditional_distribution
 Source: http://stackoverflow.com/a/32907541.
 

Functions

template<meta::is_arithmetic T>
galaxy::math::random (const T min, const T max) noexcept
 Generate a random number of type T.
 
glm::vec2 galaxy::math::random_vec2 (const glm::vec2 &min, const glm::vec2 &max) noexcept
 Generate a random vec2.
 
glm::vec3 galaxy::math::random_vec3 (const glm::vec3 &min, const glm::vec3 &max) noexcept
 Generate a random vec3.
 
glm::vec4 galaxy::math::random_vec4 (const glm::vec4 &min, const glm::vec4 &max) noexcept
 Generate a random vec4.