a variation of produced the rabbit out of the hat, produced unexpectedly an answer or solution, etc., when success appears impossible or the situation seems hopeless; an allusion to the magician's art.