n() - get n random terms

Introduced a new function - n() which will return an array of n random terms.
Improvement in unique()
Minor restructuring of code
This does not seems to be required as the arr.reduce takes care of this too