PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Common/Auxiliary/RandomExtensions.cs

#
C# | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 0b2dba4677ea8e8c51f7e5115da1fa47 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Microsoft.Research.DynamicDataDisplay.Common.Auxiliary
  6. {
  7. public static class RandomExtensions
  8. {
  9. public static double NextDouble(this Random rnd, double min, double max)
  10. {
  11. return min + (max - min) * rnd.NextDouble();
  12. }
  13. }
  14. }