MCPcopy Create free account
hub / github.com/activeloopai/deeplake / random_string

Function random_string

postgres/tests/py_tests/test_random_operations.py:42–44  ·  view source on GitHub ↗

Generate a random alphanumeric string.

(length: int = 10)

Source from the content-addressed store, hash-verified

40
41
42def random_string(length: int = 10) -> str:
43 """Generate a random alphanumeric string."""
44 return ''.join(random.choices(string.ascii_letters + string.digits, k=length))
45
46
47def random_column_name() -> str:

Callers 2

random_column_nameFunction · 0.70
random_value_for_typeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected