doubles function

Generator<double> doubles({
  1. double min = double.negativeInfinity,
  2. double max = double.infinity,
  3. bool allowNan = true,
  4. bool allowInfinity = true,
  5. bool excludeMin = false,
  6. bool excludeMax = false,
  7. double smallestNonzeroMagnitude = 5e-324,
})

Generates random double-precision floating-point numbers.

By default, generates from negative infinity to infinity, allowing NaN.

tc.draw(doubles(min: 0.0, max: 1.0))

Implementation

Generator<double> doubles({
  double min = double.negativeInfinity,
  double max = double.infinity,
  bool allowNan = true,
  bool allowInfinity = true,
  bool excludeMin = false,
  bool excludeMax = false,
  double smallestNonzeroMagnitude = 5e-324,
}) {
  return DoubleGenerator(
    min,
    max,
    allowNan,
    allowInfinity,
    excludeMin,
    excludeMax,
    smallestNonzeroMagnitude,
  );
}