Random password generator for password fields

I'd like to see a random pw generator for each password field in the ispc interface.
I think best would be to use javascript to generate a random password and display it near the password field with a small icon to copy it to the field's value.

To not waste any space this could be a small icon aligned at right to the password field so if you don't click it you have no extra texts showing up.
Just wanted to get some feedback if it is useful before I add this as feature request to the bugtracker.