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 <Raylib.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
 Application.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.
ray::Vector2 galaxy::math::random_vec2 (const ray::Vector2 &min, const ray::Vector2 &max) noexcept
 Generate a random vec2.
ray::Vector3 galaxy::math::random_vec3 (const ray::Vector3 &min, const ray::Vector3 &max) noexcept
 Generate a random vec3.
ray::Vector4 galaxy::math::random_vec4 (const ray::Vector4 &min, const ray::Vector4 &max) noexcept
 Generate a random vec4.