I want to fill my array with unique random numbers between 0-9 in c# I try this function:
IEnumerable UniqueRandom(int minInclusive, int maxIn
You could do this:
int i = 0; foreach (int random in UniqueRandom(0, 9).Take(3)) { page[i++] = random; }