Skip to content

Instantly share code, notes, and snippets.

@rbrick
Created August 20, 2016 06:22
Show Gist options
  • Save rbrick/4234e08421c3630ee7d52b8222c22a9f to your computer and use it in GitHub Desktop.
Save rbrick/4234e08421c3630ee7d52b8222c22a9f to your computer and use it in GitHub Desktop.
#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