Get a random user agent (with an optional filter to select from a specific set of user agents).