This could work. But I wonder if the order of Array elements will have an impact on that? Suppose you have seven elements in it and only one of them, the second to last one, will have a high variable. So before the loop gets to it, it will have to go through 5 loops where it will either chose or not chose any of those five elements. It seems that it will result in a system that the further the element is indexed in the array, the less are chances of it being chosen, regardless of it’s actual value.
Maybe it would help that in my case most likely there will be only one element with highest value in a given array, since player can’t be in two places simultaneously.