c# random sleep code example Example: c# random sleep Random rnd = new Random(); int number = rnd.Next(3,11); Thread.Sleep(number);