added getRandomObject()