haha ,
u used exact this
Index = rnd (0, List1.Size-1)
because the parameter name was min and max.
for a list i prefer 1 to count but it is as it is. (same for chars in strings^^)
I'm sorry, I did not understand (I
hope because of my poor English
).
I do not use:
Index = rnd (0, List1.Size-1)
but
Index = rnd (0, List1.Size)
because Arrays, Lists and other have base index 0.
Even with strings:
So even to get a single char I should use rnd(0, MyString.Length).