#include <time.h>
#include <stdio.h>
#include <stdlib.h>
int generate_random_odd_numbers_between_min_and_max(int min, int max) {
return (rand() % ((max - min + 1) / 2)) * 2 + min;
}
int main() {
srand(time(NULL));
int min = 7;
int max = 39;
for (int i = 1; i <= 10; i++) {
int n = generate_random_odd_numbers_between_min_and_max(min, max);
printf("%d\n", n);
}
return 0;
}
/*
run:
29
25
17
33
7
11
35
13
9
21
*/