How would I utilize what you have posted due to the script I am working with generates random numbers from 10 - 100. There are no set numbers to pick from
Substitute @array for @source. Of course, Rolf demonstrates a more efficient solution using the max function from List::Util if all you want is the max value and not the location.
The answer to the question "Can we do this?" is always an emphatic "Yes!" Just give me enough time and money.