Probably something to do with the seeding. I found out yesterday that a batch
of our phantoms were creating identical random numbers, tracked it down to
being exacly the same time, down to the millisecond, when they did the RND
call so the time looks like it's the only part of the seed that changes in
that instance.

Seems a bit weird.

________________________________

From: [EMAIL PROTECTED] on behalf of Barry Brevik
Sent: Wed 10/11/2004 19:03
To: U2-users (E-mail)
Subject: [U2] [UV] Random number (RND()) help



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?

Barry
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/




The information contained in this email is strictly confidential and for the
use of the addressee only, unless otherwise indicated.  If you are not the
intended recipient, please do not read, copy, use or disclose to others this
message or any attachment.  Please also notify the sender by replying to this
email or by telephone +44 (0)20 7896 0011 and then delete the email and any
copies of it.  Opinions, conclusions (etc.) that do not relate to the official
business of this company shall be understood as neither given nor endorsed by
it.  IG Markets Limited and IG Index Plc are authorised and regulated by the
Financial Services Authority and, in Australia, by the Australian Securities
and Investments Commission.

[demime 1.01d removed an attachment of type application/ms-tnef which had a 
name of winmail.dat]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to