add random pwd function