Roll a die with a number of sides
Number of sides on the die to roll
The result of the roll as a float
1 auto rolled = rollDie(6); 2 assert(rolled > 0); 3 assert(rolled < 7); 4 5 rolled = rollDie(20); 6 assert(rolled > 0); 7 assert(rolled < 21);
See Implementation
Roll a die with a number of sides