SimpleRandomStringGenerator

class SimpleRandomStringGenerator(length: Int = 10, charPool: List<Char> = (('1'..'9') + ('A'..'Z') + ('a'..'z')).toList()) : ValueGenerator<String>

Generate random string from specified char pool with specified length

Constructors

Link copied to clipboard
constructor(length: Int = 10, charPool: List<Char> = (('1'..'9') + ('A'..'Z') + ('a'..'z')).toList())

Functions

Link copied to clipboard
open override fun generate(): String

Generate single value

open fun generate(complianceCondition: (String) -> Boolean): String

Generate value satisfying the compliance condition

open fun generate(number: Int): List<String>

Generate n values

open fun generate(complianceCondition: (String) -> Boolean, number: Int): List<String>

Generate n values satisfying the compliance condition

Link copied to clipboard

Lazy value generator