|
-
April 28th, 2012, 05:07 PM
#4
Re: C# Random Methods
Thread.Sleep ought to work. See: http://msdn.microsoft.com/en-us/library/d00bd51t.aspx
You can also pass your own seed to the Random class like: new Random(seed).
If you need cryptographic-strength randomness (you don't for this application), you can also use the RNGCryptoServiceProvider class; see http://japikse.blogspot.com/2008/10/...bers-in-c.html
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|