Stop rerolling villagers. Just pick.
Open a new villager’s trade screen, press Pick trade, and choose any 2 trades its profession can offer (enchanted books at max level included). They replace the villager’s starting trades.
One chance only: once you trade with the villager, the button is gone for good.