Scala solution to dice from coins.  Only requires BigInts rather than rationals, for a *big* win! :)