Function to generate a Random Password