To produce random integers in a given range, use this formula:

Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

You will have to do the duplicate checking yourself using ascan or something similar.

[email protected]