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.
a function to generate each element (required)
the maximum length of the list to generate
Generates a random list