Here's an example function that creates a random password with uppercase letters, lowercase letters, numbers and symbols using Swift:
main.swift635 chars17 lines
You can call this function by passing in the desired length of the password as a parameter, like this:
main.swift104 chars4 lines
gistlibby LogSnag