#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int getRandom(int min, int max) {
return (rand() % (max - min + 1)) + min;
}
int main(void) {
srand(time(NULL));
int N = 15;
for (int i = 0; i < N; i++) {
printf("%d ", getRandom(1, 30));
}
return 0;
}
/*
run:
run1:
12 27 1 13 28 11 9 3 14 4 19 13 6 28 30
run2:
11 1 1 14 28 30 20 25 4 1 23 10 11 8 3
*/