Generation

generate functionSun, 13 Nov 2022

generate random numbers between 10 and 20

int random_num(int from, int to) { return rand()%(to - from) + from; } random_num(10, 20);

Questions about programming?Chat with your personal AI assistant