decimal method

double decimal (
  1. {num scale: 1,
  2. num min: 0}
)

Generates a random decimal. Accepts a scale and a min value.

Implementation

double decimal({num scale = 1, num min = 0}) =>
    _rng.nextDouble() * scale + min;