String generators.

A set of functions to help with generating random types of string. Generators can return a single value or grouped values using arrays and matrix.


_rndmChar()

Generate a single random character from a-z.

  • Name
    returns
    Type
    string
    Description

    A random character (a-z).


_rndmString()

Generate a random string.

  • Name
    len
    Type
    int
    Description

    The length of the string. By default its set to 0, which implies a random length between 3-10. Optional. The default is 0.

  • Name
    returns
    Type
    string
    Description

    A random string.


_rndmWord()

Generate a random word. (same as _rndmString())

  • Name
    len
    Type
    int
    Description

    The length of the word. By default its set to 0, which implies a random length between 3-10. Optional. The default is 0.

  • Name
    returns
    Type
    string
    Description

    A random word.


_rndmSentence()

Generate a random sentence.

  • Name
    len
    Type
    int
    Description

    The length of the sentence. By default its set to 0, which implies a random length between 3-10 words. Optional. The default is 0.

  • Name
    returns
    Type
    string
    Description

    A random sentence.


_rndmStringArray()

Generate a random string array.

  • Name
    size
    Type
    int
    Description

    The size of the array. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    len
    Type
    int
    Description

    The length of each string. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    returns
    Type
    array<string>
    Description

    A random string array.


_rndmCharArray()

Generate a random string array of single characters.

  • Name
    size
    Type
    int
    Description

    The size of the array. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    returns
    Type
    array<string>
    Description

    A random string array of single characters.


_rndmStringMatrix()

Generate a random string matrix.

  • Name
    rows
    Type
    int
    Description

    Total row size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    columns
    Type
    int
    Description

    Total column size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    len
    Type
    int
    Description

    The length of each string. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    returns
    Type
    matrix<string>
    Description

    A random string matrix.


_rndmCharMatrix()

Generate a random string matrix of single characters.

  • Name
    rows
    Type
    int
    Description

    Total row size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    columns
    Type
    int
    Description

    Total column size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    returns
    Type
    matrix<string>
    Description

    A random string matrix filled with single characters.