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) andmaxexclusive -
nextBigIntBetween(
BigInt min, BigInt max) → BigInt -
Available on Random, provided by the RandomExtensions extension
generates a random BigInt betweenmininclusive andmaxexclusive -
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 betweenmininclusive andmaxexclusive -
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