MCPcopy Create free account
hub / github.com/apple/foundationdb / randomUnicode

Function randomUnicode

bindings/python/tests/tuple_tests.py:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def randomUnicode():
40 while True:
41 c = random.randint(0, 0xffff)
42 if unicodedata.category(unichr(c))[0] in 'LMNPSZ':
43 return unichr(c)
44
45
46def randomElement():

Callers 1

randomElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected