class_docstr: Enumerate the search space in a random order
  
  Parameters
  ----------
  task: autotvm.task.Task
      Tuning Task
  
  range_idx: Optional[Tuple[int, int]]
      A tuple of index range to random
class_docstr_tok: ["Enumerate","the","search","space","in","a","random","order","Parameters","--","--","--","--","--","task",":","autotvm.task.Task","Tuning","Task","range_idx",":","Optional","[","Tuple","[","int",",","int","]","]","A","tuple","of","index","range","to","random"]
code: def next_batch(self, batch_size):
      ret = []
      while len(ret) < batch_size and self.has_next():
          index = self.space.get_rand_index(
              self.begin_idx, self.end_idx, to_exclude=self.visited
          )
          self.visited.append(index)
          ret.append(self.space.get(index))
      return ret
  
file_path: tvm/python/tvm/autotvm/tuner/index_based_tuner.py
imports: from .tuner import Tuner
label_desc: Use image node_id 1 for calling the RandomTuner obj's underlying member method code with example usage: obj.next_batch(batch_size) and returns: ret