pull out of the hat

Verb

 * 1)  To select at random, or seemingly at random.