nextUInt method

UInt nextUInt({
  1. UInt from = -DEFAULT_BUFFER_SIZE,
  2. UInt until = DEFAULT_BUFFER_SIZE,
})

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

Implementation

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