Verb
pull out of the hat (third-person singular simple present pulls out of the hat, present participle pulling out of the hat, simple past and past participle pulled out of the hat) (idiomatic) To select at random, or seemingly at random.