In PHP Random Number Generator, I have explained how to Generate a random number with in a range / Generate a random string with given length.In PHP, we can use rand() function to generate random number. using this function we can make random string also.