by Emore · 15y ago · 0 comments
my $sendAt = time + int(rand()*86400*30*5) + 86400*30;That rand() probably only has 32767 discrete values. So your time is quite imprecise, in addition to being biased. (C's rand() is very biased, so if that code forwards to rand(), then it's biased, not uniform.)
Not that it really matters much in this case.
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES...