The same on D3NT. :BPTEST $OPTIONS EXT ; FOR X = 1 TO 999999 ; CRT RND(370570) ; INPUT ZZ,1 ; IF ZZ = 'Q' THEN EXIT ; NEXT X ; END BpTest*566008520 . [820] Creating FlashBASIC Object ( Level 0 ) ... [241] Successful compile! 3 frame(s) used. 334572 ? 142184 ? 359923 ? 149243 ? 346793 ? 35018 ? 107715 ? 128841 ?Q :
Bill > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Glenn Herbert > Sent: Wednesday, November 10, 2004 1:16 PM > To: [EMAIL PROTECTED] > Subject: RE: [U2] [UV] Random number (RND()) help > > > OK. I'll agree with that!! > > At 04:03 PM 11/10/2002, you wrote: > >No it's not Windoze. I'm running Unidata PE on Win2000 and I get this: > >* BBB - Test custom snippets > >FOR I = 1 TO 100 > > PRINT RND(370570) > > INPUT HUGGA > > IF HUGGA THEN STOP > >NEXT I > >STOP > >:BBB > >43874 > >? > >27779 > >? > >267409 > >? > >138481 > >? > >188948 > >? > >243449 > >? > >253422 > >? > >282865 > >? > >33416 > >? > >351549 > > > >Must be a Universe limitation on Windoze......... > > > > *=aee=* > > > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED] Behalf Of Glenn Herbert > >Sent: Wednesday, November 10, 2004 12:01 > >To: [EMAIL PROTECTED] > >Subject: RE: [U2] [UV] Random number (RND()) help > > > > > >Oh yes. That is the limitation on 32-bit Windoze. Your numbers WILL > >differ on UNIX systems. > > > > > >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/ > >------- > >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/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
