c# sleep vs wait code example
Example 1: c# Sleep
using System.Threading;
static void Main()
{
//do stuff
Thread.Sleep(5000) //will sleep for 5 sec
}
Example 2: c# random sleep
Random rnd = new Random();
int number = rnd.Next(3,11);
Thread.Sleep(number);