- return $qb
- ->select('e')
- ->andWhere('e.id >= :random_id')
- ->setParameter('random_id', $randomPossibleIds)
- ->setMaxResults(1)
- ->getQuery()
- ->getSingleResult();
+ // random select one in the list
+ $randomId = $ids[mt_rand(0, \count($ids) - 1)]['id'];
+
+ return $this->find($randomId);