nextRaw64 method
Generates a non-negative random integer uniformly distributed in the range from 0 to 2^64-1, both inclusive.
This method only works on VM. If you try to execute it in JS, an
Unsupported64Error
will be thrown.
The raw numbers generated by the algorithm are 32-bit. This method combines two results of nextRaw32, placing the first number in the upper bits of the 64-bit, and the second in the lower bits.
Implementation
@pragma('vm:prefer-inline')
int nextRaw64() {
if (!INT64_SUPPORTED) {
throw Unsupported64Error();
}
return (this.nextRaw32() << 32) | this.nextRaw32();
}