To get a random integer value between 1 and N (inclusive) you can use the following.

To get a random integer value between 1 and N (inclusive) you can use the following.

CInt(Math.Ceiling(Rnd() * n)) + 1

Leave a Comment