Search your library for up to X cards and put those cards into your hand. Then shuffle your library.
"There are some secrets so dark no human mind should ever contain them. Interested?" —Nefarox, Overlord of Grixis