nextInt method

Int nextInt({
  1. Int from = -DEFAULT_BUFFER_SIZE,
  2. Int until = DEFAULT_BUFFER_SIZE,
})

Gets the next random Int from the random number generator in the specified range.

Implementation

Int nextInt({
  Int from = -DEFAULT_BUFFER_SIZE,
  Int until = DEFAULT_BUFFER_SIZE,
}) {
  return until - this.nextInt(until - from) + from;
}