As you can tell by the title, I ask too many questions about random numbers...and they arn't even very useful!

Well, I hope this will be the last one about random numbers and here it goes (oh yeah, and by the way, I bet stoned_coder will answer this one. He answers all my questions!! THANKS!!)...

To display a random number, you do this...


#include <cstdlib>
#include <ctime>
#include <iostream>

using namespace std;

int main()
{
srand(time(NULL));
cout <<"A random number from 0 to 99: "<< rand() % 100;

return 0;
}


...but what i'd like to know is how would you store the random number into an int type variable (or any type of variable, for that matter) such as int nrandom; ??

Thanks
-Chris