Created
October 25, 2013 16:29
-
-
Save jlggross/7157544 to your computer and use it in GitHub Desktop.
Realiza o sorteio de 1 a 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main () { | |
int iSecret; | |
srand (time(NULL)); | |
iSecret = rand() % 5 + 1; | |
printf("O sorteado é: %d\n", iSecret); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any support is very much appreciated.