Random String

The $RString function generates random strings. There are parameters:

  1. Minimum string length. Integer, mandatory.
  2. Maximum string length. Positive integer, mandatory.
  3. (optional) Upper letter probability. Integer, default is 5%. Use 0 for all lower case letter.
  4. (optional) Space char probability. Integer, default is 5%. Use 0 to disable space chars.
  5. (optional) Separators (.,?!) probability. Integer, default is 0%. Use 0 to disable space chars.
  6. (optional) List of Unicode blocks*.

* - one or more constants: 'Latin','Greek', 'Cyrillic','Hebrew','Arabic','Syriac','Bengali','Thai','Lao','Mongolian','CJK','Hangul'.
Only Unicode version of the library supports this parameter. ANSI version ignores it.

Examples

  1. $RString(1,10) - generates strings between 1 and 10 letters, 5% upper letters and 5% spaces, without separators.
  2. $RString(1,10,0,0,0)- generates strings between 1 and 10 letters, without upper letters, spaces and separators.
  3. $RString(1,10,,,,Greek,Cyrillic) - generates strings between 1 and 10 letters with Greek and Cyrillic Unicode symbols.