Response. Writegetrandnumber (max, min)' Get a random number and return the number in the range of [min, max] without repetition.
Function getRandNumber (maximum, minimum)
Irregular
getRandNumber = CInt((max-min+ 1)* Rnd()+min)
End function