Generates random passwords and saves to a file