Added getRandomElement inside the collection classes