It might help you to use this function that searches for all instances of an image as a basis for doing the same for all instances of pixels of a certain color. Once you get the array of locations returned as an array, it would be easy to randomly choose one.
Statistics: Posted by boiler — Today, 16:58