source:
branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Auxiliary/RandomExtensions.cs
@
13808
Last change on this file since 13808 was 12503, checked in by aballeit, 9 years ago | |
---|---|
File size: 349 bytes |
Line | |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | |
6 | namespace Microsoft.Research.DynamicDataDisplay.Common.Auxiliary |
7 | { |
8 | public static class RandomExtensions |
9 | { |
10 | public static double NextDouble(this Random rnd, double min, double max) |
11 | { |
12 | return min + (max - min) * rnd.NextDouble(); |
13 | } |
14 | } |
15 | } |
Note: See TracBrowser
for help on using the repository browser.