With a borrowed and shuffled deck the magician splits the deck into 2 packs. One for the spectator and one for the magician.
Cards are dealt from each pile until 8 cards are left which are then split into two equal piles. The spectator chooses a pile to keep. This keeps happening until we only have only 1 card left. That final card will be the same as the magician's prediction.