Hey, Thanks Sorensen, that worked, my comp is fast enough and I thank you all for the help but yeah, I was calling the srand() right before it used rand()% and that was in a loop, Thanks guys!
Type: Posts; User: Malikive
Hey, Thanks Sorensen, that worked, my comp is fast enough and I thank you all for the help but yeah, I was calling the srand() right before it used rand()% and that was in a loop, Thanks guys!
while (count<numofpass)
{
int num = 0;
while (num<x)
{
num++;
int matrixinput = rand() % 92;
a_file<<chars[matrixinput];
}
...
I read the FAQ and several posts, but can anyone tell me how to generate a random number in less than 1 second? I'm making a game where I need random numbers calculated in less than 1 second and it...
Hey man, thanks for that advice, it worked! I'm not a very good programmer yet but that command will come in handy =). Thanks again!
Hey man, thanks for that advice, it worked! I'm not a very good programmer yet but that command will come in handy =). Thanks again!
Hey man, thanks for that advice, it worked! I'm not a very good programmer yet but that command will come in handy =). Thanks again!
I'm making a text/ASCII graphic game and there are times where I need to "Cancel input" from the keyboard to allow the user to watch something happen. Where if you hit enter 3 times during it and...
I'm making a text/ASCII graphic game and there are times where I need to "Cancel input" from the keyboard to allow the user to watch something happen. Where if you hit enter 3 times during it and...
Prolly not a difficult question, but I'm making a text/ASCII graphic game and there are times where I need to "Cancel input" from the keyboard to allow the user to watch something happen. Where if...