Merged Winderps' diceroller code