def uniform_sampling_paragraph(thief_vocab, para_len=None):
  """Sample words uniformly randomly from a vocabulary to build a paragraph."""
  if para_len is None:
    # randomly choose a length from 75 to 500
    para_len = np.random.randint(75, 500)
  return " ".join([random.choice(thief_vocab) for _ in range(para_len)])
Sample words uniformly randomly from a vocabulary to build a paragraph.
language/bert_extraction/steal_bert_qa/data_generation/preprocess_util.py