Here's script for a function to generate random passwords using R. You can either make random strings (style = 'rando') or use dictionary words (style = 'words'). Both of these options meet most modern password requirements (e.g., at least 1 uppercase letter, 1 number, 1 special character), but include custamizability in the password length.ย
This is behind the curve in that many web browsers and other programs will do this for you, but this was more fun.
Please give it a try! If you have R but aren't entirely sure how to use this, all you need to do is run the first line of code, which will build the function and store it in your global environment, so now you can use it just like any other function (while in the same R session). The last two lines provide an example for each of the two methods.