vengine  0.1.0
3D graphics engine made with Vulkan
Loading...
Searching...
No Matches
myLib::Random Class Reference

Class for random number generation. More...

#include <Random.hpp>

+ Collaboration diagram for myLib::Random:

Static Public Member Functions

static int randomInt (int min, int max)
 Generate a random integer between min and max.
 
static int randomInt ()
 
static float randomFloat (float min, float max)
 
static float randomFloat ()
 

Detailed Description

Class for random number generation.

Definition at line 17 of file Random.hpp.

Member Function Documentation

◆ randomFloat() [1/2]

static float myLib::Random::randomFloat ( )
inlinestatic

Definition at line 36 of file Random.hpp.

References randomFloat().

Referenced by randomFloat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ randomFloat() [2/2]

float myLib::Random::randomFloat ( float min,
float max )
static
Parameters
minThe minimum value
maxThe maximum value
Returns
float The random float

Definition at line 10 of file random.cpp.

◆ randomInt() [1/2]

static int myLib::Random::randomInt ( )
inlinestatic

Definition at line 28 of file Random.hpp.

References randomInt().

Referenced by randomInt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ randomInt() [2/2]

int myLib::Random::randomInt ( int min,
int max )
static

Generate a random integer between min and max.

Parameters
minThe minimum value
maxThe maximum value
Returns
int The random integer

Definition at line 3 of file random.cpp.


The documentation for this class was generated from the following files: