Generate unique elements in an array

In reply to dave_59:

Oops! Thanks! Please let me know about the solution to the problem.