Added method to pick up a random pixel for Ph Optimisation