module Dice rand : System.Random = System.Random () // 2d6 kind of stuff public Roll (amount : int, max : int) : int if (amount == 1) rand.Next (max) + 1 else rand.Next (max) + 1 + Roll (amount - 1, max) public Roll (max : int) : int Roll (1, max)