       useRandomly = !RandUtil.getRandomInt(0, 3)
       return hasAlchemyCard or useRandomly
 
+   replaceSetIdInCardId = (cardId, setId) ->
+       return setId + '_' + cardId.split('_')[1]
+
 
    window.Randomizer = {
       createKingdom: createKingdom

            useShelters: shouldUseSpecialtyCardFromSet(DARK_AGES_SET_ID, setsToUse)
         }
      }

   adjustKingdomForAlchemyCards = (kingdom, cardsToUse, requiredCardIds, excludeCardIds) ->      
      alchemyCards = kingdom.cards.filter(filterByIncludedSetIds([ALCHEMY_SET_ID]))

      TREASURE_7: 'treasure7',
      TREASURE_8: 'treasure8'
   }

   SetsWithDuplicates = {
      'baseset2': 'baseset',
      'intrigue2': 'intrigue'
   };

   NUM_CARDS_IN_KINGDOM = 10

