Month: June 2017

Get Random Date From A Date Range

This is a quick trick to generate a random date between two date ranges. First, create a function that generates a random number between two given values: private static int RandomNumBetween(int smallNum, int bigNum) { Random rnd = new Random(); int randomValue = rnd.Next(smallNum, bigNum + 1); return randomValue; } Now, use this function to […]

Read More