Boosters in the Shop include 5 cards, which can have Common, Rare, Epic or Legendary rarity. The odds of getting cards with high rarity are:
At least 1 Rare (Green) card or better in every booster.
1 Epic (Purple) card every 5 boosters, on average.
1 Legendary (Golden) card every 20 boosters, on average.
To prevent long streaks of bad luck, there is a mechanic to guarantee that there are no more than 30 consecutive boosters of the same type without a Legendary card.