code: def random(self, count=1, **kwargs):
          
          kwargs.update({"count": count})
          orientation = kwargs.get("orientation", None)
          if orientation and orientation not in self.orientation_values:
              raise Exception()
          url = "/photos/random"
          result = self._get(url, params=kwargs)
          return PhotoModel.parse_list(result)
docs: Retrieve a single random photo, given optional filters.
  
          Note: If supplying multiple category ID’s,
          the resulting photos will be those that
          match all of the given categories, not ones that match any category.
  
          Note: You can’t use the collections and query parameters in the same request
  
          Note: When supplying a count parameter
          - and only then - the response will be an array of photos,
          even if the value of count is 1.
  
          All parameters are optional, and can be combined to narrow
          the pool of photos from which a random one will be chosen.
  
          :param count [integer]: The number of photos to return. (Default: 1; max: 30)
          :param category: Category ID(‘s) to filter selection. If multiple, comma-separated. (deprecated)
          :param collections: Public collection ID(‘s) to filter selection. If multiple, comma-separated
          :param featured: Limit selection to featured photos.
          :param username: 	Limit selection to a single user.
          :param query: Limit selection to photos matching a search term.
          :param w: Image width in pixels.
          :param h: Image height in pixels.
          :param orientation: Filter search results by photo orientation.
          Valid values are landscape, portrait, and squarish.
          :return: [Array] or [Photo]: A single page of the curated Photo list or The Unsplash Photo. .
          :raise UnsplashError: If the given orientation is not in the default orientation values.