![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Easy one, I think. While the Raining Data documentation, including the most recent (7/25) on-line documentation, suggests that the maximum "numeric expression" for the basic function rnd() is 32000, much higher values seem to also compile and run properly. Does anyone have the definitive answer? Thanks, Rob |
#3
| |||
| |||
|
|
I re-wrote the random number generator to make it more "random" in '91. It uses a 4 byte work field, so theoretically any number +/- h8FFFFFFF or +/- 2,415,919,103 But, Basic will slap you with the precision shift. It divides your number by the scaleing factor (usually 10,000) and mulitplies again at the end, to keep the decimals right in an integer world. Mark Brown "Robert S. Lobel" <RobertLobel (AT) COX (DOT) net> wrote in message news:1Yxzg.221$0F5.210 (AT) fed1read04 (DOT) .. Easy one, I think. While the Raining Data documentation, including the most recent (7/25) on-line documentation, suggests that the maximum "numeric expression" for the basic function rnd() is 32000, much higher values seem to also compile and run properly. Does anyone have the definitive answer? Thanks, Rob |
#4
| |||
| |||
|
|
Thanks, Mark. Does this mean that rnd(90,000) will produce 90,000 random numbers? Let me know. "Mark Brown" <mbrown (AT) drexelmgt (DOT) com> wrote in message news:Hyyzg.6585$%a1.4764 (AT) tornado (DOT) socal.rr.com... I re-wrote the random number generator to make it more "random" in '91. It uses a 4 byte work field, so theoretically any number +/- h8FFFFFFF or +/- 2,415,919,103 But, Basic will slap you with the precision shift. It divides your number by the scaleing factor (usually 10,000) and mulitplies again at the end, to keep the decimals right in an integer world. Mark Brown "Robert S. Lobel" <RobertLobel (AT) COX (DOT) net> wrote in message news:1Yxzg.221$0F5.210 (AT) fed1read04 (DOT) .. Easy one, I think. While the Raining Data documentation, including the most recent (7/25) on-line documentation, suggests that the maximum "numeric expression" for the basic function rnd() is 32000, much higher values seem to also compile and run properly. Does anyone have the definitive answer? Thanks, Rob |
![]() |
| Thread Tools | |
| Display Modes | |
| |