Added getRandomValue() and getRandomPosition()