0
我想編寫一個簡單的鞅系統來計算在輪盤上x旋轉後「我的」賬戶中將有多少錢。該計劃很簡單,只是爲了實驗。到目前爲止,我有這個,但是,我想補充一點,如果這個隨機數字a是例如兩倍或更多......與d相同,我會加倍我的賭注。所以,如果一個.. = 2,A = 5我敢打賭兩個等8,16,32 4而不是..計算資金鞅系統
from random import*
money = 100
bet = 2
d = [0, 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35]
for i in range(100):
a = randint(1, 36)
if a in d:
money -= bet
else:
money += bet
print("Your money",money,"€")