public Item random(int coins, Randomizer rand) {
   Integer max = itemsForCoins.get(coins);
   if (max == null) max = items.size() - 1;
   return content.get(rand.nextInt(0, max));
 }