Here's a function in Swift that generates a random password including uppercase letters, lowercase letters, and numbers:
main.swift708 chars19 linesYou can call this function with an integer argument to specify the length of the password you want to generate, like this:
main.swift81 chars3 linesgistlibby LogSnag