<p>I would like to generate a random floating point number between 2 values.  What is the best way to do this in C#?</p>

```
```
// generate a random number starting with 5 and less than 15
Random r = new Random();
int num = r.Next(5, 15);
```
```
For doubles you can replace Next with NextDouble