Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Member Functions | Friends | List of all members
Engine::Random Class Reference

This class provides random nummber generation of ints and floats withing the passed boundaries More...

#include <Random.hpp>

Public Member Functions

int const & GenerateInt (int const &min, int const &max)
 Generate a number within the passed boundaries More...
 
float const & GenerateFloat (float const &min, float const &max)
 Generate a number within the passed boundaries More...
 
 ~Random ()=default
 

Friends

class Engine
 

Detailed Description

This class provides random nummber generation of ints and floats withing the passed boundaries

Definition at line 9 of file Random.hpp.

Constructor & Destructor Documentation

Engine::Random::~Random ( )
default

Member Function Documentation

float const & Engine::Random::GenerateFloat ( float const &  min,
float const &  max 
)

Generate a number within the passed boundaries

Parameters
minThe minimum number to be generated
maxThe maximum number to be generated
Returns
Returns a number from min to max

Definition at line 37 of file Random.cpp.

int const & Engine::Random::GenerateInt ( int const &  min,
int const &  max 
)

Generate a number within the passed boundaries

Parameters
minThe minimum number to be generated
maxThe maximum number to be generated
Returns
Returns a number from min to max

Definition at line 14 of file Random.cpp.

Friends And Related Function Documentation

friend class Engine
friend

Definition at line 30 of file Random.hpp.


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