nextULong method

ULong nextULong({
  1. ULong from = -DEFAULT_BUFFER_SIZE,
  2. ULong until = DEFAULT_BUFFER_SIZE,
})

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

Implementation

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