if each must be unique, can you not just generate a list of (slot/numslots) and then randomly reorder that list instead? either way it might be faster to scan a sorted list for duplicates.
but yeah, there's far to much find()ing going on.
Moderator: InsideQC Admins
Users browsing this forum: No registered users and 1 guest