Diabolic Revelation

Diabolic Revelation

Sorcery (CMC 5)
Search your library for up to X cards, put those cards into your hand, then shuffle.