[Csci551-talk] random is not that random
Affan, Syed
asyed at usc.edu
Sun Mar 20 09:29:56 PST 2005
Interesting. We really hadnt thought of that (this randomization problem
while choosing being not "random"). Off the top of my head, i dont see
any reason why not to set of 8 requests at the same time. But if some
one can come up with a better way to randomize.. it would be nice to
share with all.
Best Regards,
Affan, Syed.
-----Original Message-----
From: csci551-talk-bounces at mailman.isi.edu
[mailto:csci551-talk-bounces at mailman.isi.edu] On Behalf Of S. Rubin
Sent: Sunday, March 20, 2005 8:57 AM
To: csci551-talk at mailman.isi.edu
Subject: [Csci551-talk] random is not that random
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/d5623211/attachment.html
More information about the Csci551-talk
mailing list