Dice¶
A simple dice roller.
Constructors¶
create¶
Initialise with a random number generator.
Parameters¶
- from: Random ref
Returns¶
- Dice ref^
Public fields¶
var r: Random ref¶
Public Functions¶
apply¶
Return the sum of count
rolls of a die with the given number of sides
.
The die is numbered from 1 to sides
. For example, count = 2 and
sides = 6 will return a value between 2 and 12.
Parameters¶
Returns¶
- U64 val