They pull from all available Rogue Gallery mercs, as far as I know. It's also the only way to get some of the older RG mercs!
Would be excellent if we had access to all of them again instead of a random number generator deciding.