A dice library with built-in fairness checking