RandomExtensions extension
adds utility methods on Random to generate strings
- on
Methods
-
nextBigInt(
BigInt max) → BigInt -
Available on Random, provided by the RandomExtensions extension
generates a random BigInt between 0 (inclusive) andmax
exclusive -
nextBigIntBetween(
BigInt min, BigInt max) → BigInt -
Available on Random, provided by the RandomExtensions extension
generates a random BigInt betweenmin
inclusive andmax
exclusive -
nextChar(
{String? chars}) → String -
Available on Random, provided by the RandomExtensions extension
generates random character; defaults to using chars of base64 encoding -
nextIntBetween(
int min, int max) → int -
Available on Random, provided by the RandomExtensions extension
generates a random int betweenmin
inclusive andmax
exclusive -
nextString(
{int length = 32, String? chars}) → String -
Available on Random, provided by the RandomExtensions extension
generates random string of lengthlength
; uses base64 chars for string