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
@abhijeetkpawar why's this commented out?