Here is how I query my database for some words
$query = $qb->select(\'w\') ->from(\'DbEntities\\Entity\\Word\', \'w\') ->where(\'w.indiction
Or you could do this -->
$words = $em->getRepository('Entity\Word')->findAll(); shuffle($words);
Of course this would be very inefficient if you have many records so use with caution.