is any ways to check repeated output?

I am generating a group of numbers by random.next().
But repeated output comes.
Is there any method to eliminate it?
Topic archived. No new replies allowed.