dice API documentation
Project documentation Docs

File: dice/_rng.py

1# --------------------------------------------------------------------------------------------------2# SPDX-License-Identifier: Apache-2.03# SPDX-FileCopyrightText: 2026 cpdocs developers4# --------------------------------------------------------------------------------------------------5"""Private helpers; hidden from the API reference."""6 7import random as _random8 9 10def seeded(seed: int) -> _random.Random:11    """Return a seeded generator."""12    return _random.Random(seed)