ofCodePointsLength

abstract fun ofCodePointsLength(r: Random, minCodePoints: Int, maxCodePoints: Int): String

Return

Returns a string of variable length between minCodePoints (inclusive) and maxCodePoints (inclusive) length. Code points are full unicode codepoints or an equivalent of int type, see String class for explanation. The returned String.length may exceed maxCodePoints because certain code points may be encoded as surrogate pairs.

Parameters

minCodePoints

Minimum number of code points (inclusive).

maxCodePoints

Maximum number of code points (inclusive).