[Csci551-talk] random is not that random
S. Rubin
srubin at flash.net
Sun Mar 20 08:57:24 PST 2005
When I loop for max of 8 segments and pick at random a segment that I still need,
I get at most 2 different random values. If a put a sleep after each rand call, I get a
better variety. Since I am in the loop selecting a new random segment and a
random volunteer from whom I can download, I don't wait to get any responses,
I just blast off the requests. Is this incorrect? Are we suppose to delay our
requests, or is ot fine to have a short sleep after each rand call in this loop?
Rand seems to be working better for loss as it does not occur at this short
intervals.
Sophia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.isi.edu/pipermail/csci551-talk/attachments/20050320/26019053/attachment.html
More information about the Csci551-talk
mailing list