I've pieced this together. Now I cannot remember how to call the correct number into the printf function. I seem to remember doing this array different the previous time in the form of a table.
Code:#include <stdio.h> #include <time.h> char *insult[7]{ "*", "*", "*", "*", "*", "*", "*", }, char *noun[3]{ "*", "*", "*", }, int random_insult() { srand((unsigned)time(NULL)); return rand()%6; } int random_noun() { srand((unsigned)time(NULL)); return rand()%2; } int main() { int noun_number; int insult_number; noun_number = do_randomnoun; printf(



LinkBack URL
About LinkBacks


