You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "dice.h"
|
|
|
|
#include <random>
|
|
|
|
unsigned int dice(unsigned int minDice, unsigned int maxDice)
|
|
{
|
|
static std::random_device rd;
|
|
static std::mt19937 gen(rd());
|
|
static std::uniform_int_distribution<> distrib(minDice, maxDice);
|
|
|
|
return distrib(gen);
|
|
}
|