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.)