MCPcopy Create free account
hub / github.com/apache/arrow / random_ascii

Function random_ascii

python/pyarrow/tests/util.py:112–113  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

110
111
112def random_ascii(length):
113 return bytes([random.randint(65, 122) for i in range(length)])
114
115
116def rands(nchars):

Callers 2

random_stringsFunction · 0.90

Calls 1

bytesFunction · 0.85

Tested by 2

random_stringsFunction · 0.72