Medieval gamblers turned their back on fate and made dice fair