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);

Want to kickstart your project?Use the new AI Studio to create your code