For the ancient scholar' floop effect, how do you randomize the rainbow cards? Separate them from the rest of the discard pile then flip them face down and grab a random one? Or can you take any rainbow card you want?

Separate all of the rainbow cards, then shuffle them. Now pick one at random.