XL2000: How to Create Unique Random Integers Between Two Numbers (213290)
The information in this article applies to:
This article was previously published under Q213290 SUMMARY
In Microsoft Excel, you can create a Microsoft Visual Basic Sub procedure (macro) to create a list of unique (non-repeating) random integers between two other numbers.
This articles describes a sample macro that prompts the user for a starting integer and an ending integer, prompts the user to input the number of random numbers to generate, and then generates a list of unique integers on the active worksheet.
REFERENCES
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
212536
OFF2000: How to Run Sample Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213290 |
---|
|