Random Number Generation (86523)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q86523 SUMMARY
In Microsoft Excel, the RAND function uses the following iterative
method to calculate pseudo-random numbers:
The first random number:
random_number=fractional part of (9821 * r + 0.211327),
where r = .5
Successive random numbers:
random_number=fractional part of (9821 * r + 0.211327),
where r = the previous random number
This formula will provide up to 1 million different numbers.
Modification Type: | Minor | Last Reviewed: | 8/15/2005 |
---|
Keywords: | kbinfo KB86523 |
---|
|