OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Functions | Variables
random.cpp File Reference

Random number generation. More...

#include <chrono>
#include <map>
#include <random>
#include <utility>
#include "global.h"
#include "utils/random.h"
Include dependency graph for random.cpp:

Go to the source code of this file.

Functions

int randomInteger (int max, int min)
 

Variables

static std::map< int, std::uniform_int_distribution< int > > distributions
 
static std::default_random_engine engine
 
static bool engineIsSeeded = false
 

Detailed Description

Random number generation.

Author
xythobuz

Definition in file random.cpp.

Function Documentation

int randomInteger ( int  max,
int  min 
)

Definition at line 20 of file random.cpp.

Variable Documentation

std::map<int, std::uniform_int_distribution<int> > distributions
static

Definition at line 16 of file random.cpp.

std::default_random_engine engine
static

Definition at line 17 of file random.cpp.

bool engineIsSeeded = false
static

Definition at line 18 of file random.cpp.