Yea there is you could do this
random{int n ) {
static bool seeded = false; /* used to ensure seeding done just one */
int seed;
if(!seeded) {
cout <<"Enter a value to randomize a value" << endl;
cin>> seed;
cin.ignore(80,'\n');
srand(seed);
seeded = true;
}
* then you call your rand() */