randomness generator returns proper number of companies