Readonlycode: "InvalidArgument"The discriminant.
Readonlyparameter: RandParameterThe argument.
Readonlyvalue: unknownThe value received.
Optional Readonlybounds?: RandBoundsThe accepted integer domain; absent when the argument must be a Uint8Array.
Readonlycode: "EmptyRange"The discriminant.
Readonlystart: number | bigintThe range start.
Readonlyend: number | bigintThe range end.
Readonlyclosed: booleantrue for [start, end], false for [start, end).
Readonlycode: "RangeTooLong"The discriminant.
Readonlylength: number | bigintend - start.
Readonlymax: number | bigintThe width's MAX.
Readonlyclosed: booleantrue for [start, end], false for [start, end).
Readonlycode: "ValueDoesNotFit"The discriminant.
Readonlycode: "InvalidSeed"The discriminant.
Readonlyparameter: RandSeedParameterThe seed, a word of it, or a byte length.
Readonlyvalue: unknownThe value received.
Readonlycode: "InvalidGenerator"The discriminant.
Readonlymethod: RandGeneratorMethodThe generator member that was called.
Readonlyvalue: unknownThe bad draw, the non-callable member, or the undefined/null generator.
Readonlycode: "CryptoUnavailable"The discriminant.
The structured payload of a RandError, discriminated by
code.e.details.code === "InvalidGenerator"narrows to{ method, value }, and so on.