Here is my version
I can't believe you took what i wes able to produce in 23 lines of code and reduced it to three. This is amazing (I didn't know MAX existed at all)
There is only one thing I have trouble with and that is the last line. which displays the name of the random variable. I can't understand the line.
The part I didn't understand is: mid(list,random(len(list)),1)
After we have created a list of all the variables that are equal to the largest number (MAXX)
How does the random selection from the list happen here?
My ultimate goal is that in the end the some STRING variable will receive one of the options:
apples, pears, oranges, coconuts
(Then of course I can play with it for my purposes)
I would appreciate your help on this matter.