If the target creature is an illegal target by the time Path to Exile tries to resolve, the spell won't resolve. The creature's controller won't search for a basic land card.
19-03-2021
wotc
The controller of the exiled creature isn't required to search their library for a basic land. If that player doesn't, the player won't shuffle their library.
Random a card of Magic: The Gathering (MTG), but you can also roll the D20 dice, random a Planeswalker, have fun with the random rules and more.