• Generates a random list

    Parameters

    • config: {
          generator: Function;
          maxLength: undefined | number;
      }

      a list of parameters containing a number maxLength (default : 5) and a generating function for elements generator that define the characteristics of the array on the generator.

      • generator: Function

        a function to generate each element (required)

      • maxLength: undefined | number

        the maximum length of the list to generate

    Returns List<any>

    • the generated list