public override long NextInt64() { long result = LocalRandom.NextInt64(); AssertInRange(result, 0, long.MaxValue); return(result); }
public override long NextInt64(long minValue, long maxValue) { if (minValue > maxValue) { ThrowMinMaxValueSwapped(); } return(LocalRandom.NextInt64(minValue, maxValue)); }
public override long NextInt64(long maxValue) { if (maxValue < 0) { ThrowMaxValueMustBeNonNegative(); } return(LocalRandom.NextInt64(maxValue)); }
public override long NextInt64(long minValue, long maxValue) { if (minValue > maxValue) { ThrowMinMaxValueSwapped(); } long result = LocalRandom.NextInt64(minValue, maxValue); AssertInRange(result, minValue, maxValue); return(result); }
public override long NextInt64(long maxValue) { if (maxValue < 0) { ThrowMaxValueMustBeNonNegative(); } long result = LocalRandom.NextInt64(maxValue); AssertInRange(result, 0, maxValue); return(result); }
public override long NextInt64() => LocalRandom.NextInt64();