Luna::IRandom
Represents a Pseudo-random number generator.
interface Luna::IRandom : public virtual Interface
Base type
Member functions
-
virtual void set_seed(u32 seed)=0
Sets random seed for the generator.
-
Generates one random 32-bit unsigned integer.
-
Generates one random 32-bit signed integer.
-
Generates one random 64-bit unsigned integer.
-
Generates one random 64-bit signed integer.
-
virtual f32 gen_f32(f32 range_begin, f32 range_end)=0
Generates one random 32-bit floating-point number.
-
virtual f64 gen_f64(f64 range_begin, f64 range_end)=0
Generates one random 64-bit floating-point number.
-
Generates one random GUID (Globally Unique Identifier).