Last active
January 17, 2017 10:29
-
-
Save casparkleijne/83300f027e7c8c3da95c45bc16d4eb77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static readonly Random rand = new Random(DateTime.Now.Millisecond); | |
Stack<TimeSpan> times = new Stack<TimeSpan>( | |
Enumerable | |
.Range(0, 30) // <-- intervals | |
.Select(i => new TimeSpan(0, 0, rand.Next(5))) //<-- frequencies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment