We can use rand() function to generate a random integer. But sometimes we need to generate random alphanumeric value. For instance, in password recovery mechanism we are often required to auto generate random alphanumeric value to be used as temporary password. This class can be used for the same purpose.