Пример #1
0
 public static double NextDouble(this IRnd rnd, int a, int b)
 {
     return(a + rnd.NextDouble() * (b - a));
 }
Пример #2
0
 public static int Next(this IRnd rnd, int a, int b)
 {
     return(a + (int)((b - a) * rnd.NextDouble()));
 }