Ask ASP programming experts for help! How to randomly assign the specified number through ASP?

The following is a random function, which I originally created. I hope it works for you.

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