Beispiel #1
0
        public UniformDists()
        {
            _rng          = new StepRng(0);
            _uniformSByte = Uniform.New((SByte)LowerBound, (SByte)UpperBound);
            _uniformInt16 = Uniform.New((Int16)LowerBound, (Int16)UpperBound);
            _uniformInt32 = Uniform.New(LowerBound, UpperBound);
            _uniformInt64 = Uniform.New((Int64)LowerBound, (Int64)UpperBound);

            _uniformByte   = Uniform.New((Byte)LowerBound, (Byte)UpperBound);
            _uniformUInt16 = Uniform.New((UInt16)LowerBound, (UInt16)UpperBound);
            _uniformUInt32 = Uniform.New((UInt32)LowerBound, (UInt32)UpperBound);
            _uniformUInt64 = Uniform.New((UInt64)LowerBound, (UInt64)UpperBound);

            _uniformSingle = Uniform.New((Single)LowerBound, (Single)UpperBound);
            _uniformDouble = Uniform.New((Double)LowerBound, (Double)UpperBound);

            _uniformTimeSpan = Uniform.New(TimeSpan.FromHours(LowerBound), TimeSpan.FromHours(UpperBound));
        }