Generate a list of values, with length bounded by the size parameter.
gen.list(generator, from = 1, to = NULL, of = NULL)
a generator used for list elements
minimum length of the list of elements
maximum length of the list of elements ( defaults to size if NULL )
the exact length of the list of elements (exclusive to `from` and `to`).