Phil Carmody on Fri, 17 Oct 2003 18:58:56 -0700 (PDT) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
random(x) for x in [2^31, 2^32) |
while(1,m=random(2^31);print(m)) 4242106392 3984652624 3725604345 ... all too high while(1,print(random(2^32-1))) 0 0 0 ... all suspiciously low. 2.2.6 on x86. My alpha doesn't seem to have problems either there or at the 2^63..2^64-1 cutoff (assuming that 64-bits is a significant unit for an alpha), but it's running only 2.1.5, alas. Phil ===== When inserting a CD, hold down shift to stop the AutoRun feature In the Device Manager, disable the SbcpHid device. http://www.cs.princeton.edu/~jhalderm/cd3/ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com