add find max with random position