After you have multiple treat bags in your inventory, open one bag; if it has a mask open the rest immediately.. You should receive mostly if not all masks. Same goes with wands. If you open it and get candy make sure you wait a little bit and open it later or you will receive mostly candy. The loot seems to be time based.