Name:
Anonymous
2019-09-10 17:01
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
int myrand(int min, int max) {
int new_value;
static int previous_value;
if(min > max) return 1;
do {
srand(time(NULL));
new_value = rand() % (max - min);
} while(new_value == previous_value);
previous_value = new_value;
return new_value;
}
int main() {
for(register char c = 0; c < 5; c++) {
printf("%c\t", myrand(33, 126));
}
putchar('\n');
return 0;
}
Name:
Anonymous
2019-09-12 13:24
>>13>>14>>16>>25C is the target language you soykaf plebeians.
>>15The requirement clearly states 'How do I make this faster?'. Learn to read you Execution time is **the** requirement.
>>20Congratulations on making a slow, non-portable pile of excrement.