Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
100
def
random_utf8(nchars):
101
""
"
102
Generate one random UTF8 string.
103
""
"
104
return
''
.join(np.random.choice(_RAND_CHARS, nchars))
105
106
107
def
random_bytes(nbytes):
Callers
1
generate_column
Method · 0.85
Calls
1
join
Method · 0.45
Tested by
no test coverage detected