Thank you Nominal Animal...I will try something with your help... :)

Now I have some other problem with some other task...

How can I randomize numbers from one to seven in one array without repeating?

Code:

`#include <stdio.h>`

#include <stdlib.h>

#define MAX 7

int main()

{

int x[MAX],i,j;

for(i=0;i<MAX;i++) x[i]=0;

for(i=0;i<MAX;i++)

{

j=0;

randomize();

x[i]=random(7);

while(j<i){ j++; if(x[i]==x[j]) break;}

if(j!=i) while(x[j]!=x[i]) x[i]=random(7);

}

for(i=0;i<MAX;i++)

{

printf("%d\n",x[i]);

}

}

I tried like this,but it gets me the same number over and over :frown: