Dimir Machinations

Dimir Machinations

Sorcery (CMC 3)
Look at the top three cards of target player's library. Exile any number of those cards, then put the rest back in any order.
Transmute (, Discard this card: Search your library for a card with the same mana value as this card, reveal it, put it into your hand, then shuffle. Transmute only as a sorcery.)