hi
my programme is this one
Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
int main (){
int N=100;
int num[N];
int i;
int contnum=1;
//inizio algortimo
srand((unsigned)time(NULL));
num[0]=1;
num[99]=100;
for(i=0;i<N;i++){
num[N]=rand()%(num[99]-num[0]+1)+num[0];
printf("\n%d ---> %d",contnum,num[N]);
contnum++;
_sleep(100);
}
printf("\n\n\n");
//system("pause");
getch();
}
It Shows the Numbers extracted casually by PC . ( 1<=number<=100 ).
but how can i dont make it repeat the already extracted number ???
please help ... need it for tomorrow lesson