More robust dice roller

Based on D&D dice-rolling syntax.