Space to roll, X to set the number of sides. It's 20 sides by default. Press Z to set min and max for range, then press C to roll in that range.
Made for roleplaying purposes.