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) and max exclusive
nextBigIntBetween(BigInt min, BigInt max) BigInt

Available on Random, provided by the RandomExtensions extension

generates a random BigInt between min inclusive and max 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 between min inclusive and max exclusive
nextString({int length = 32, String? chars}) String

Available on Random, provided by the RandomExtensions extension

generates random string of length length; uses base64 chars for string