IDIOMS

pick out of a hat



Example: To determine by chance.
To substitute a guess for unavailable data.
  That number was just picked out of a hat.