Drupal by default sends Password Reset URL by mail to user's email id in password recovery mail, but Recovery Password modules makes it possible for Drupal to send any random password by email instead of URL to the user.
Recovery Password Module alters default Drupal password reset process and makes it possible to
send the new password in recovery mail
itself. In this case, when user clicks on forgot password providing valid username or email address, new password is generated randomly and is sent to the user email address.