That would be illegal in Australia, even if the policy was prominently displayed up front.
Claiming otherwise is to treat each book as a packet of Pokémon trading cards, where you know you’re getting some cards, but you don’t get to choose which ones.