A simple header defined class to emulate a die roll

Represents a die with a max number passed at construction.

Namespace: ORPG

Assembly: none


Defined in #include "die.h"

class Die {
        Die(int max);
        int roll();

Member functions

Function Description
Die(int max) creates a die that will roll between 1 and max
int roll() gets a uniform random mt19937 number between 1 and max