suou.luck

Fortune, RNG and esoterism.

New in 0.7.0

Functions

lucky([validators])

Add one or more constraint on a function's return value.

rng_overload(prev_func, /, *[, weight])

Decorate the first function with @rng_overload and the weight= parameter (default 1, must be an integer) to create a "RNG" overloaded callable.

Classes

RngCallable([func, weight])

Overloaded ...randomly chosen callable.