[pull out of a hat] {v. phr.}, {informal} To get as if by magic; invent; imagine.
* /When the introduction to a dictionary tells you how many hours went into its making, these figures were not pulled out of a hat./* /Let's see you pull an excuse out of your hat./