Helpers

Avulto provides several Python functions that can be useful for inspecting codebases.

avulto.helpers.fill_with_ones(l: avulto.Dmlist) → dict

Returns a dictionary version of the passed in Dmlist with all unset values set to 1.

avulto.helpers.pickweight(l: dict)

Returns a weighted pick from the items in l.

avulto.helpers.pick_weight_recursive(list_to_pick)

Returns a recursive weighted pick from the items in l.

avulto.helpers.prob(p)

Returns 1 with probability p percent, otherwise 0.

Equivalent to BYOND’s prob.