Add some DnD style rolling functionality to the common file, to be used in character rolling