I have been looking at teh tutorials for random numbers and was wondering if it was possible to get random phrases or would I just get a random number and if it =s something then post a certain phrase?
And can I use a for loop witht this code from the FAQ?
Code:
#include <iostream>
#include <ctime>
int main(void)
{
int i;
srand(time(NULL));
i = rand();
std::cout <<"Your random number is " <<i <<std::endl;
std::cout <<"This compiler can generate random numbers from 0 to "
<<RAND_MAX <<std::endl;
return(0);
}