Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Using the /randbats in a room yields the message "/randombattles OR /randbats [pokemon], [gen] - Displays a Pokémon's Random Battle Moves. Defaults to Gen 8. If used in a battle, defaults to the gen of that battle"
It however gives Gen 9 Sets when you don't specify a Gen. It also shows the same...