Update randomCould method.