[Csci551-talk] random is not that random
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Csci551-talk