def _zipf_rv_below(gamma, xmin, threshold):
 result = nx.utils.zipf_rv(gamma, xmin)
 while (result > threshold):
  result = nx.utils.zipf_rv(gamma, xmin)
 return result

def _zipf_rv_below ( gamma , xmin , threshold ) : result = nx . utils . zipf_rv ( gamma , xmin ) while ( result > threshold ) : result = nx . utils . zipf_rv ( gamma , xmin ) return result
returns a random value chosen from the zipf distribution .