#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int dado(int min, int max) {
    return(rand()% (max-min+1))+1;
}

void main() {
    srand(time(NULL)); 
    printf("dado = %d\n", dado(min=1, max=10));
    printf("dado = %d\n", dado(min=1, max=10));
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: