Esempio n. 1
0
        protected override object CreateRandomValueInternal(SqlRandomizer rand, SqlRandomTableColumn columnInfo)
        {
            int precision = columnInfo.Precision.HasValue ? columnInfo.Precision.Value : MaxFloatPrecision;

            if (precision <= RealPrecision)
            {
                return(rand.NextDouble(float.MinValue, float.MaxValue, precision));
            }
            else
            {
                return(rand.NextDouble(double.MinValue, double.MaxValue, precision));
            }
        }
Esempio n. 2
0
 protected override object CreateRandomValueInternal(SqlRandomizer rand, SqlRandomTableColumn columnInfo)
 {
     return((decimal)Math.Round(rand.NextDouble()));
 }