예제 #1
0
        public static int Between <T>(this StampGenerator <T, int> generator, int min, int max) where T : class
        {
            if (max < int.MaxValue)
            {
                max++;
            }

            return(generator.GetRandomizer().Next(min, max));
        }
예제 #2
0
 public static bool Vary <T>(this StampGenerator <T, bool> generator) where T : class
 {
     return(generator.GetRandomizer().Next(2) == 1);
 }