How to Create an Array of Unique Random Numbers (136420)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft FoxPro for MS-DOS 2.5b
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for Macintosh 2.5b
- Microsoft FoxPro for Macintosh 2.5c
- Microsoft FoxPro for Macintosh 2.6a
- Microsoft FoxPro for UNIX 2.6
This article was previously published under Q136420 SUMMARY
The FoxPro RAND() function returns a random number between 0 and 1. This
article shows by example how to:
- Create random numbers between 5 and 10.
- Easily create an array of random numbers between any two integers.
- Make the random numbers in an array unique.
The user-defined functions (UDFs) listed in this article demonstrate how.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | KB136420 kbAudDeveloper |
---|
|