nextLong method

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

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

Implementation

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