Sups :3
So I'm trying to generate a random word though i'm having some issues with it at the moment. I'm using random numbers to them making them.
Here is an example of how i'm trying to do this though its not working.
otherwise everytime your loop runs it will generate the same letter. If you multiply your rand() by 57 or any other integer other than 1 or 2, you will take the amount of seconds from your
srand(time(NULL));
multiply it by 57 then take the modulus of 5 (which will give you a number 0-4 so i suggest doing (rand() % 5)+1 so it doesnt give you a value of 0 & also take out randomnumber = 0). Now the second time the loop runs you will have a value between 1 and 5. It will take that number and multiply it by 57 then mod 5.
ex.
loop runs once and your number is 3 so it generates a 'c'
second time through you take number * 57 and generate a larger integer and then take % 5 of that integer