heittää hatusta

Etymology
Originally, a reference to magician's tricks which sometimes involve dragging a rabbit, pigeon etc. from a hat; now is slightly more common than.

Verb

 * 1)  to guess, guestimate, take off the top of one's head