if (idempotentId % (randomizer.nextInt(10) + 10) == 0) throw new RuntimeException("Hey, I did not count on this happening...");
if (idempotentId % (randomizer.nextInt(17) + 17) == 0) throw new DatabaseFailureException("Help! The database's gone haywire.");
if (idempotentId % (randomizer.nextInt(121) + 50) == 0) System.exit(1);
if (!bets.containsKey(idempotentId)) {
persist(idempotentId, new Bet(player, game, amount));
}
}