onlinejudge_random package

onlinejudge_random.randint(a: int, b: int, *, type: str = 'auto', r: random.Random = <module 'random' from '/home/docs/checkouts/readthedocs.org/user_builds/online-judge-template-generator/envs/stable/lib/python3.7/random.py'>) → int[source]

randomly choose an integer

onlinejudge_random.rooted_tree_parents(nodes: int, *, base: int = 0, type: str = 'auto', r: random.Random = <module 'random' from '/home/docs/checkouts/readthedocs.org/user_builds/online-judge-template-generator/envs/stable/lib/python3.7/random.py'>) → List[int][source]

randomly choose a rooted tree

onlinejudge_random.sequence(size: int, kind: int, *, base: int = 0, type: str = 'auto', r: random.Random = <module 'random' from '/home/docs/checkouts/readthedocs.org/user_builds/online-judge-template-generator/envs/stable/lib/python3.7/random.py'>) → List[int][source]

randomly choose a sequence

onlinejudge_random.tree_edges(nodes: int, *, base: int = 0, type: str = 'auto', r: random.Random = <module 'random' from '/home/docs/checkouts/readthedocs.org/user_builds/online-judge-template-generator/envs/stable/lib/python3.7/random.py'>) → List[Tuple[int, int]][source]

randomly choose a unrooted tree