a list of parameters containing a number
length (default : 5) and a generating function for elements
generator (required) that define the characteristics of the array
elements.
a function to generate each element (required)
the length of the array to generate
an array of randomly generated elements
Generate a random Javascript array from a generating function