This can be useful for generating test data.
Or perhaps for generating a random delay in seconds.

        public static double GetRandomNumber(double minimum, double maximum)
        {
            Random random = new Random();
            return random.NextDouble() * (maximum - minimum) + minimum;
        }

Tagged with:

Filed under: C#