[[Tom Bombadil]]'s second ability says: “…reveal cards from the top of your library until you reveal a Saga card. Put that card onto the battlefield and the rest on the bottom of your library in a random order”.
What if the (remaining) library does not contain any Saga cards? I suppose Tom’s controller won’t lose the game because it says “reveal” and not “draw”. Does it mean that the whole library ends up being revealed and then being ordered as the controller wishes?
To add to the other comment, in general, you do as much as possible when resolving a card or effect.
The only exception is if something targets (specifically only with the word “target”) and either there are no valid targets when it would go on the stack (in which case it cannot be cast/triggered/activated), or the targets all become invalid when it’s time to resolve it (in which case you do nothing at all and just remove it from the stack).
So to answer your question, you reveal cards until you reveal a saga (which means you reveal every card in your library), then shuffle those cards back into your library.
Because the effect puts them in a random order you don’t get to stack your deck. If you have no sagas in the deck you effectively just shuffle the deck with no other game effects.
With the added bonus of having your whole library revealed, making it possible for your opponent to deduce your hand via POE!



