Hey, this is super random, but I suddenly remembered this question and had the epiphany that this is already possible with current Max Raids. It's so obvious, but I was so focused on having everything done in the code instead of in the event script, that I didn't even think about how easy this would be to do by just creating an array in the event itself.
For example, if you set your event script to look like this:
Code:
poke = [:BULBASAUR,:CHARMANDER,:SQUIRTLE]
randpoke = poke.shuffle.first
pbMaxRaid(1,2,randpoke)
This will create a 1v1 2-Star Raid Den that will randomly spawn Bulbasaur, Charmander, or Squirtle. You can list as many Pokemon as you want in the array, and the raid will always spawn a random one each time its reset. Keep in mind though that you should only list species that are possible to find in the star rank of the raid. So if you list something like Mewtwo in the array, but the star rank is set at 3 or something, you will just get Ditto if the raid randomly tries to spawn Mewtwo (since Mewtwo can only spawn in rank 6 raids).
But it doesn't end there. You can also use this trick to randomize the bonus loot obtained from raids, too.
Code:
loot = [:ORANBERRY,:SITRUSBERRY,:LUMBERRY]
randloot = loot.shuffle.first
pbMaxRaid(1,2,:MUNCHLAX,randloot)
This will create a 1v1 2-Star Raid Den versus Munchlax that will reward you randomly with an Oran Berry, Sitrus Berry, or Lum Berry upon clearing the raid.
You can combine all of the above even, and do something like this:
Code:
poke = [:PIDGEOT,:FEAROW,:SWANNA,:BRAVIARY,:TALONFLAME]
loot = [:HEALTHWING,:MUSCLEWING,:RESISTWING,:GENIUSWING,:CLEVERWING,:SWIFTWING]
randpoke = poke.shuffle.first
randloot = loot.shuffle.first
randqty = 1+rand(20)
pbMaxRaid(2,3,randpoke,[randloot,randqty])
This will create a 2v1 3-Star raid with a random bird Pokemon listed in the "poke" array, which will reward a random wing item listed in the "loot" array, at a random amount between 1-20.
This opens up new Raid possibilities I haven't even thought of before, so this is pretty cool imo. I feel so dumb I didn't even think of this before.