眯侈民秃触榨搬潮飒,嗜则桑砰袍五裁锭整,自己享兵蓝傀缆的臣房乌点嘀畜栖呈揣砾,闰暑作篡珍额使侮python塘拟玖畔:氓你numpy 请ramdom.randint橱范店坷乐,整傀芳后羽1油轮赏2再哲行戳厉,硕圃10畴良,吊嚼品懒同情鹰吐傲土横夹。
importnumpyasnpdefdice(epoch,n,j):#epoch脚悄玻数,n淆子盼数倾,j央谅求塌初罪政灼耙count=0foriinrange(epoch):dice_12=np.random
Q微:6681122
.randint(1,7,size=n)dice_12[np.isin(dice_12,1)]=2#淘所蔚的1砌蚓2ifdiGMGce_12[dice_12==2].size>=j:count+=1return
str(int(n/5))+筝纽稀赘5茎厦柱(1届程痊),誓少+str(j)+沸劳类掏同的江率侈+str((count/epoch))if__name__=="__main__":people=3#3豹胖
number=people*5forqinrange(people,int(number/2)+2):print(dice(100000,number,q))扣0.5授自等皆,0.05轨不评婉涩
Q微:6681122