code: def _sample(rng, arr, k):
    
    selected = numpy.empty(k, dtype="uint32")
    rng.sample(numpy.asarray(arr, dtype="uint32"),
               selected)
    return selected
docs: Equivalent to:
  
    random.sample(arr, k)
  
    except it uses our random number generator.