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

Function random_utf8

dev/archery/archery/integration/util.py:100–104  ·  view source on GitHub ↗

Generate one random UTF8 string.

(nchars)

Source from the content-addressed store, hash-verified

98
99
100def random_utf8(nchars):
101 """
102 Generate one random UTF8 string.
103 """
104 return ''.join(np.random.choice(_RAND_CHARS, nchars))
105
106
107def random_bytes(nbytes):

Callers 1

generate_columnMethod · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected