R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Random.cpp File Reference
#include "Random.hpp"
#include <random>
Include dependency graph for Random.cpp:

Go to the source code of this file.

Functions

int randint (int min, int max)
 Function to generate a random integer.
 

Variables

std::random_device rd
 

Function Documentation

◆ randint()

int randint ( int min,
int max )

Function to generate a random integer.

Generates a random integer between min and max (both included)

Parameters
minminimum value
maxmaximum value

Definition at line 6 of file Random.cpp.

Variable Documentation

◆ rd

std::random_device rd

Definition at line 4 of file Random.cpp.