Pool_of_games = [[[0,2,3,1,3,2,0,1],"PdPd","PrisonerDilemma"],
[[0,3,2,1,2,3,0,1],"ShSh","StagHunt"],
[[1,2,3,0,3,2,1,0],"ChCh","Chicken"],
[[2,1,3,0,3,1,2,0],"BaBa","Battle"]]
#%%
# Random Strategy Selection: ramdomly choose a strategy within each player's strategy profile for each game in the input list
def RandomStrategySelection():
你好,我有以下输入,我试图在列表的第一个括号内选择并存储一个变量两个随机项(数字),但是我需要定义每个变量应该选择的范围,其中一个需要在四个第一个值中选择一个项目,然后第二个变量将选择其中一个项目,我需要为所有项目执行此操作。我一直在尝试一些东西,但我无法让它工作,任何想法?非常感谢你!