Choose a card name. Target player reveals cards from the top of their library until a card with that name is revealed. If it is, that player puts the rest of the revealed cards into their graveyard and puts the card with the chosen name on top of their library. Otherwise, the player shuffles.
At the beginning of each player's draw step, that player puts the cards in their hand on the bottom of their library in any order, then draws that many cards.