var/theMap=rand(1,Maps.len)
Problem description:
I keep always getting one single number. Maps.len = 2. I've outputted it and checked it. The length is two, but the second map is ALWAYS chosen. Never is the first map chosen. Either it's just tails every single time, or does the rand not use the lower bound number?
The rand() proc does include both bounds, so it should be working.