Every number below is computed by the same code the Hearthstone Sim tools run. Install to get answers for your own deck.
Before mulligan, a 2-of is in your opening hand 19.3% going first (3 cards) and 25.3% going second (4 cards). By turn 4 without a mulligan: 41.8% going first (7 cards seen), 46.9% going second. A 1-of by turn 4: 23.3% / 26.7%. Mulliganing for it raises these; hs_mulligan_odds simulates the exact rule.
You see 3 cards going first or 4 going second, choose any to replace, and the replacements are drawn from the deck without the cards you threw back; those are shuffled in afterwards. That makes a mulligan slightly better than a fresh draw. Going second you also get The Coin.
Exactly 30 cards (40 with Prince Renathal), at most 2 copies of a card and 1 of a Legendary, only Neutral cards and cards of your class (Tourists allow one other class). Standard allows the Core set and recent expansions; Wild allows all. hs_deck_check checks a deck code for free.
Going second gives an extra card (4 vs 3) and The Coin. Your chance to hold a specific 2-of by turn 3 without mulligan is 36.6% going first vs 41.8% going second. hs_curve_goldfish shows how often each order uses all its mana.
Playing your deck against an opponent who does nothing, to check how consistently it uses its mana and hits key turns. hs_curve_goldfish runs thousands of seeded games so the same list gives the same answer and two builds can be compared.