Generates a random password with a specific length