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