put target permanent you own on the bottom of your library. reveal cards from the top of your library until you reveal a card that shares a card type with that permanent. put that card onto the battlefield and the rest on the bottom of your library in a random order.
retrace (you may cast this card from your graveyard by discarding a land card in addition to paying its other costs.)