25 lines
333 B
Text
25 lines
333 B
Text
V stay = 0
|
||
V sw = 0
|
||
|
||
L 1000
|
||
V lst = [1, 0, 0]
|
||
random:shuffle(&lst)
|
||
V ran = random:(3)
|
||
V user = lst[ran]
|
||
lst.pop(ran)
|
||
|
||
V huh = 0
|
||
L(i) lst
|
||
I i == 0
|
||
lst.pop(huh)
|
||
L.break
|
||
huh++
|
||
|
||
I user == 1
|
||
stay++
|
||
|
||
I lst[0] == 1
|
||
sw++
|
||
|
||
print(‘Stay = ’stay)
|
||
print(‘Switch = ’sw)
|