2015-09-13から1日間の記事一覧
Pythonでシュミレーション 回答者が選びなおさない場合 from numpy import * ok = 0 ng = 0 for num in range(1, 10000): door = ["a", "b", "c"] answer = random.choice(door) choice = random.choice(door) if answer == choice: ok += 1 else: ng += 1 p…
Pythonでシュミレーション 回答者が選びなおさない場合 from numpy import * ok = 0 ng = 0 for num in range(1, 10000): door = ["a", "b", "c"] answer = random.choice(door) choice = random.choice(door) if answer == choice: ok += 1 else: ng += 1 p…