private function allocateSociety(Show $show) { if (mt_rand(0, 3) == 0) { $show->setOtherSociety('Random Society ' . mt_rand(1, 100)); } else { $show->setSociety($this->society_repo->findOneById($this->society_ids[mt_rand(0, count($this->society_ids) - 1)])); } }