By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,570 Members | 999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,570 IT Pros & Developers. It's quick & easy.

time interval question

P: n/a
Rob
Hi,
I have a question, when you use a random number generator Random() in a loop
to generate say 50000 random numbers; is it any difference if you use
different time interval between each loop instead of a fixed amount of time,
for example using an exponential time interval instead of a fixed time
interval in a loop which generates 50000 random number makes any changes in
results?

Thanks for any help.
Rob
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It depends on the random number generator. Some use the current system
time as part of the randomizing process, others don't. I suspect that the
Random class does not use the time, but rather is deterministic.

On Mon, 28 Jul 2003 15:04:45 -0400, Rob wrote:
Hi,
I have a question, when you use a random number generator Random() in a
loop to generate say 50000 random numbers; is it any difference if you
use different time interval between each loop instead of a fixed amount
of time, for example using an exponential time interval instead of a
fixed time interval in a loop which generates 50000 random number makes
any changes in results?

Thanks for any help.
Rob


--
Keep American Families united! Support H.R. 539 and H.R. 832
For more information, see http://www.kkeane.com/lobbyspousal-faq.shtml

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.