def user_agent(self) -> str:
        """Generate a random web browser user agent string."""
        name: str = self.random_element(self.user_agents)
        return getattr(self, name)()
Generate a random web browser user agent string.
faker/providers/user_agent/__init__.py