Panda3D
Public Member Functions | Public Attributes | List of all members
WeightedChoice Class Reference

Public Member Functions

def __init__ (self, listOfLists, weightIndex=0)
 
def choose (self, rng=random)
 

Public Attributes

 listOfLists
 
 total
 
 weightIndex
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  listOfLists,
  weightIndex = 0 
)

Member Function Documentation

◆ choose()

def choose (   self,
  rng = random 
)

Member Data Documentation

◆ listOfLists

listOfLists

◆ total

total

◆ weightIndex

weightIndex