I am not able to reproduce.
There are 2 steps to using the random password:
1) Create the random password binding
2) use the random password as the value for a form element.
The code wont be generated for step 1, but should be generated when you use the binding in step 2.