|
-
Nov 16th, 2006, 08:10 AM
#1
Thread Starter
G&G Moderator
[RESOLVED] Random Intervals
Howdy all,
I'm wanting to perform a task at random intervals until specfied otherwise. Basically, when I call a Start() function, it should call a DoSomething() function, until I call Stop(). My problem is a) Writing a "Gameloop" type thing to handle this, and b) generating the randomness. I can't have a set interval, because the program needs to be as random as can be whilst performing the task. It also can't perform this task, about, 2 minutes apart. So, if I called start now, the program would perform the task, then, it can't perform it for another 2 minutes at least.
I've been thinking about it for a while and I'm not quite sure where to start in C#.
Any help would be appreciated 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
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
|