libmath: Math helping functions

Mathematical functions.

class haddock.libs.libmath.RandomNumberGenerator(seed: int = 494)[source]

Bases: object

Generate random numbers.

Python uses the Mersenne Twister as the core generator. It produces 53-bit precision floats and has a period of 2**19937-1

randint(lower_limit: int = 0, upper_limit: int = 9) int[source]

Generate a random integer.