#include
#include
#include
void test(int num, int min, int max)
{
int *p;
int i, j;
p = malloc(num*sizeof(int));
srand((int)time(0));
for(i=0; i{
p[i] = rand()%(max - min +1) + min;
}
for(j=0; j{
printf("%d ", p[j]);
}
printf("\n");
free(p);
p = NULL;
}
int main()
{
test(3,20,100);
}