0 to 32767. High order bits are dropped. The documentation does indicate that the value within the parenthesis is the total number of integers, including 0, from which the random number can be selected; what it doesn't mention is the upper limit of what the parenthesized value can be.
Glenn At 02:36 PM 11/10/2004, you wrote:
I ran your code on UV 10.1 on AIX and the highest number generated was 370558 I don't think it's your code
Mel
UV 9.6.1.3 on NT. I needed to generate some random numbers between 0 and 370570, and just to check the distribution of numbers, I ran this snippet of code:
FOR I = 1 TO 999999 THIS.NUM = RND(370570) NEXT
What's odd is that no matter how many times I run this, the distribution of numbers is always completely in the lower 10% of the range (approx). In other words, there are never any numbers generated higher than ~ 33,000.
Am I doing something stupidly wrong? ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
