In init, set the password range length from 8 to 64. I want to change the 'rangelength' to 13-32 when mode = hard, but the 'rangelength' is not modified.
How about defining the min and max length as variables before the pwd1 declaration. Then you could first evaluate "hard" fand set the variables accordingly, and then use these variables in the pwd1 rangelength declaration.