Пример #1
0
        public static int GetIntNumber(int min, int max)
        {
            int            seed = Guid.NewGuid().GetHashCode();
            RandomMersenne mInt = new RandomMersenne((uint)seed);

            return(mInt.IRandom(min, max));
        }
Пример #2
0
        public static double GetDoubleNum()
        {
            int            seed    = Guid.NewGuid().GetHashCode();
            RandomMersenne mDouble = new RandomMersenne((uint)seed);

            return(mDouble.Random());
        }