Overload  1.1
Game engine with editor
Public Member Functions | Static Public Member Functions | List of all members
OvTools::Utils::Random Class Reference

#include <Random.h>

Public Member Functions

 Random ()=delete
 

Static Public Member Functions

static int Generate (int p_min, int p_max)
 
static float Generate (float p_min, float p_max)
 
static bool CheckPercentage (float p_percentage)
 

Constructor & Destructor Documentation

◆ Random()

OvTools::Utils::Random::Random ( )
delete

Disabled constructor

Member Function Documentation

◆ CheckPercentage()

bool OvTools::Utils::Random::CheckPercentage ( float  p_percentage)
static

Verify if the percentage is satisfied

Parameters
p_percentage(must be between 0 and 1)

◆ Generate() [1/2]

float OvTools::Utils::Random::Generate ( float  p_min,
float  p_max 
)
static

Generate a random between two given floats (Closed interval)

Parameters
p_min
p_max

◆ Generate() [2/2]

int OvTools::Utils::Random::Generate ( int  p_min,
int  p_max 
)
static

Generate a random between two given integers (Closed interval)

Parameters
p_min
p_max

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