Left my dice bag at home on a visit to a friend's place and decided to hack together a quick program to fill the void.