code: def get_random_item(enum: Any, rnd: Optional[Random] = None) -> Any:
      
      if rnd and isinstance(rnd, Random):
          return rnd.choice(list(enum))
      return random_module.choice(list(enum))
docs: Get random item of enum object.
  
      :param enum: Enum object.
      :param rnd: Custom random object.
      :return: Random item of enum.