Declare an instance, then use it as a function:
RandomInt a(7, 15); // Return random values from 7 to 15 cout << "one random value " << a() << "\n"; cout << "and another " << a() << "\n";