Generate Passwords How it Works Firstly, it creates 2 lists. A letter list (containing a-z, 0-9, and special characters + 2 emojis), and a copy+paste list, where your passwords go for copy and pasting. To generate a password it takes a random letter and adds it to the "word" variable, which is repeated length times. When the password is finished it is added to the list.