Integer generators.

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


_rndmInt()

Generate a random integer number.

  • Name
    min
    Type
    int
    Description

    Minimum value allowed. Optional. The default is 0.

  • Name
    max
    Type
    int
    Description

    Maximum value allowed. Optional. The default is 100.

  • Name
    returns
    Type
    int
    Description

    A random integer number.


_rndmIntArray()

Generate a random integer 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
    min
    Type
    int
    Description

    Minimum value allowed. Optional. The default is 0.

  • Name
    max
    Type
    int
    Description

    Maximum value allowed. Optional. The default is 100.

  • Name
    returns
    Type
    array<int>
    Description

    A random integer array.


_rndmIntMatrix()

Generate a random integer 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
    min
    Type
    int
    Description

    Minimum value allowed. Optional. The default is 0.

  • Name
    max
    Type
    int
    Description

    Maximum value allowed. Optional. The default is 100.

  • Name
    returns
    Type
    matrix<int>
    Description

    A random integer matrix.