changing pam sign input generation logic , and adding random parameter test