Function Objects
Function object: an object that can be uesd in the fashion of a function.
class randomInteger {public: unsigned int operator () (unsigned int max) { // compute rand value between 0 and max unsigned int rval = rand(); return rval % max; }
randomInteger randomizer; // create an instance of class