max() -- return the larger of its two arguments
Return the maximum of its two arguments.
for a=1 to 1000
for b=1 to 10
for a=1 to 9
print a,": ",m(a)
Within the inner for-loop (the one with the loop-variable b), the example computes the maximum of 10 random numbers. The outer loop (with the loop variable a) now repeats this process 1000 times and counts, how often each maximum appears. The last loop finally reports the result.
Now, the interesting question would be, which will be approached, when we increase the number of iterations from thousend to infinity. Well, maybe someone could just tell me :-)