Python
import random as r while True: b=input("ok?") a=r.random() if a>=0.5: print("中弹了!") break else: print("没中")