direct.directutil.WeightedChoice

from direct.directutil.WeightedChoice import WeightedChoice

Inheritance diagram

Inheritance diagram of direct.directutil.WeightedChoice

class WeightedChoice(listOfLists, weightIndex=0)[source]

Bases: object

__init__(self, listOfLists, weightIndex=0)[source]
choose(self, rng=<module 'random' from '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/random.py'>)[source]