MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / random

Function random

other/password.py:50–51  ·  view source on GitHub ↗
(chars_incl: str, i: int)

Source from the content-addressed store, hash-verified

48
49
50def random(chars_incl: str, i: int) -> str:
51 return "".join(secrets.choice(chars_incl) for _ in range(i))
52
53
54def is_strong_password(password: str, min_length: int = 8) -> bool:

Callers 7

updateFunction · 0.85
fill_graph_randomlyMethod · 0.85
fill_graph_randomlyMethod · 0.85
transitionMethod · 0.85
random_levelMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected