public function __construct(EntityManager $em, Random $random) { $this->em = $em; $this->random = $random; }