C#: Random.NextDouble and including borders of the custom interval
I've used that formula for gettting a random double in custom interval:

    Random r = new Random();
    double Upper = 3.7, Lower = 11.4, Result;    
    Result = Lower + (r.NextDouble() * (Upper - Lower))
    // Lower is the lower border of interval, Upper is the upper border of interval

But keep in mind [what MSDN says][1] about NextDouble method:

> A double-precision floating point number greater than or equal to 0.0, and less than 1.0.

That means interval in my sample code would include 3.7, but we can never get 11.4, right?
How can I include the upper border? 

    Lower + (r.NextDouble() * (Upper - Lower + double.Epsilon))

Can this formula help? Or there is another variant of getting random double numbers in [3.7 ; 11.4] (including both borders) ?
  [1]: http://msdn.microsoft.com/ru-ru/library/system.random.nextdouble.aspx
C#: Random.NextDouble and including borders of the custom interval
===

I've used that formula for gettting a random double in custom interval:

    Random r = new Random();
    double Upper = 3.7, Lower = 11.4, Result;    
    Result = Lower + (r.NextDouble() * (Upper - Lower))
    // Lower is the lower border of interval, Upper is the upper border of interval

But keep in mind [what MSDN says][1] about NextDouble method:

> A double-precision floating point number greater than or equal to 0.0, and less than 1.0.

That means interval in my sample code would include 3.7, but we can never get 11.4, right?
How can I include the upper border? 

    Lower + (r.NextDouble() * (Upper - Lower + double.Epsilon))

Can this formula help? Or there is another variant of getting random double numbers in [3.7 ; 11.4] (including both borders) ?
  [1]: http://msdn.microsoft.com/ru-ru/library/system.random.nextdouble.aspx