Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Private Attributes | List of all members
cqsp::common::util::StdRandom Class Reference

#include <stdrandom.h>

Inheritance diagram for cqsp::common::util::StdRandom:
cqsp::common::util::IRandom

Public Member Functions

 StdRandom (int _seed)
 
int GetRandomInt (int min, int max)
 
int GetRandomNormal (double mean, double sd)
 
- Public Member Functions inherited from cqsp::common::util::IRandom
 IRandom (int _seed)
 
virtual ~IRandom ()=default
 

Private Attributes

std::mt19937 random_gen
 

Additional Inherited Members

- Protected Attributes inherited from cqsp::common::util::IRandom
int seed
 

Constructor & Destructor Documentation

◆ StdRandom()

cqsp::common::util::StdRandom::StdRandom ( int  _seed)
inlineexplicit

Member Function Documentation

◆ GetRandomInt()

int cqsp::common::util::StdRandom::GetRandomInt ( int  min,
int  max 
)
inlinevirtual

◆ GetRandomNormal()

int cqsp::common::util::StdRandom::GetRandomNormal ( double  mean,
double  sd 
)
inlinevirtual

Member Data Documentation

◆ random_gen

std::mt19937 cqsp::common::util::StdRandom::random_gen
private

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