Wrote a dice rolling routine to be included in other projects