#include <time.h>
#include <stdlib.h>
#include <stdio.h>
int main(void) {
int r
= rand() % 13; //é número de cartas de cada naipe printf("Número sorteado %d", r
); return 0;
}
//https://pt.stackoverflow.com/q/41829/101
I2luY2x1ZGUgPHRpbWUuaD4KI2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKHZvaWQpIHsKICAgIHNyYW5kKHRpbWUoTlVMTCkpOwogICAgaW50IHIgPSByYW5kKCkgJSAxMzsgLy/DqSBuw7ptZXJvIGRlIGNhcnRhcyBkZSBjYWRhIG5haXBlCiAgICBwcmludGYoIk7Dum1lcm8gc29ydGVhZG8gJWQiLCByKTsKCXJldHVybiAwOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS80MTgyOS8xMDE=