Random numbers with non repeated values

Hi

I want to generate random numbers with non repeated values.
how i can do?
I used random function as following :
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]Random rnd = new Random();[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]int i = rnd.Next(1, 5);[/COLOR][/SIZE][/COLOR][/SIZE]

[COLOR=#008000]But its not working. values gets repeated[/COLOR]
[SIZE=2][COLOR=#008000]
[/COLOR][/SIZE]Thank you.