Search your library for up to X creature cards with different names that each have mana value X, reveal them, put them into your hand, then shuffle.
For cards in your library with {X} in their mana costs, X is considered to be 0.
If you cast Uncage the Menagerie with X as 0, you’ll search your library and shuffle it, but you won’t be able to find any cards.