Raven Engine v0.1
Loading...
Searching...
No Matches
Random.h File Reference

Provides the Random facade for various random number utilities. More...

Classes

class  Crux::Random
 Static wrapper around RandomEngine for convenience. More...

Namespaces

namespace  Crux

Detailed Description

Provides the Random facade for various random number utilities.

The Random class wraps a PCG32-based RandomEngine and exposes easy-to-use static methods for generating integers, floats, doubles, and 64-bit values. Supports optional seeding for reproducibility.

Example usage: Crux::Random::Seed(42ULL); float r1 = Crux::Random::Float(); int r2 = Crux::Random::Int(100); u64 uuid = Crux::Random::U64();

Author
Philip