scripts/dice: update to use SecureRandom and fix a logic error (sorry for anyone who generated DnD characters [4d6k3] with the old version)