random method

Random random([
  1. dynamic left,
  2. dynamic right,
  3. dynamic options
])

Generates a random number between two bounds

Implementation

Random random([left, right, options]) {
  if (right != null) {
    return Random.rightBound(left, right, options);
  } else if (left != null) {
    return Random.leftBound(left, options);
  } else {
    return Random(options);
  }
}