Hi all,
I was wondering how to generate random numbers with limited duplicates.
I have a code to select these specific numbers only in VBA,
The thing is I want to limit my duplication as I want to run this on multiple rows.Please Login or Register to view this content.
An example of this scenario would be:
I have 100 rows, within the hundred rows there will be only 1 two, 3 fours, 4 fives, ..... , 99 one hundreds.
Obviously there wouldn't be 191 numbers within 100 rows, just saying if a 4 is in the row then the program will now have two 4s left to insert or whether it will be used or not based on random choice.
Hope this makes sense as I have tried searching but I have no luck in finding a solution.
Please let me know how I can go about it.
Cheers.
Bookmarks