as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
implement a program that randomly generates a password.
user
this program will generate a random, secure password by randomly selecting characters from a predefined character set. the program will start by defining the character set which will contain upper and lowercase alphabetic characters, numeric digits and special characters. the length of the password entered by the user will be used to determine the number of characters left in the character set. then the program will use a random number generator to randomly select characters from the character set based on the length that was entered. once the character selection is complete, the program will output the randomly generated password to the user.
assistant