class documentation

class Random:

Constructor: Random(seed, prefix)

View In Hierarchy

Random class implementation that allows to enforce a prefixable behaviour.

Method __init__ Undocumented
Method choice Undocumented
Method export Undocumented
Method gauss Undocumented
Method randint Undocumented
Method random Undocumented
Method randrange Undocumented
Method triangular Undocumented
Method uniform Undocumented
Instance Variable seed Undocumented
Method _take_number Undocumented
Instance Variable _count Undocumented
Instance Variable _prefix Undocumented
Instance Variable _random Undocumented
def __init__(self, seed: int, prefix: list[FloatOrInt] | None = None):

Undocumented

def choice(self, seq: Sequence[T]) -> T:

Undocumented

def export(self) -> list[float]:

Undocumented

def gauss(self, mu: float, sigma: float) -> float:

Undocumented

def randint(self, a: int, b: int) -> int:

Undocumented

def random(self) -> float:

Undocumented

def randrange(self, start: int, stop: int | None = None, step: int = 1) -> int:

Undocumented

def triangular(self, low: float = 0, high: float = 1, mode: float | None = None) -> float:

Undocumented

def uniform(self, a: float, b: float) -> float:

Undocumented

seed =

Undocumented

def _take_number(self, fn: Callable[P, FloatOrInt], *args: P.args, **kwargs: P.kwargs) -> FloatOrInt:

Undocumented

_count: int =

Undocumented

_prefix: list[FloatOrInt] =

Undocumented

_random =

Undocumented