Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo rand_max

C, rand_max, srand, value max, epoch!!

#include #include int main() {     system("color 1f");     int i;     printf("RAND_MAX is %u\n", RAND_MAX);     srand(time(0));     printf("random values from 0 to RAND_MAX\n");     for(i=0;i     printf("%d\n", rand());     printf("randon values from 1 to 100\n");     for(i=0;i     printf("%d\n",(rand()%100)+1);     system("pause"); } Link para o programa!!