Created
August 20, 2016 06:22
-
-
Save rbrick/4234e08421c3630ee7d52b8222c22a9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
#define CURSE_ARRAY_SIZE 5 | |
#define CURSE_AMOUNT 100 | |
char* CURSE_WORDS[] = { "SHIT", "FUCK", "DAMN", "DAMMIT", "CRAP" }; | |
void main() | |
{ | |
time_t t; | |
srand((unsigned) time(&t)); | |
for (int i = 0; i < CURSE_AMOUNT; i++) | |
{ | |
printf("%s\n", CURSE_WORDS[rand() % CURSE_ARRAY_SIZE]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment