Die

A simple header defined class to emulate a die roll

Represents a die with a max number passed at construction.

Namespace: ORPG

Assembly: none

Definition

Defined in #include "die.h"

class Die {
    public:
        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
s