Zack_M_Davis comments on Drawing Two Aces - Less Wrong

14 Post author: Eliezer_Yudkowsky 03 January 2010 10:33AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (84)

You are viewing a single comment's thread. Show more comments above.

Comment author: Zack_M_Davis 06 January 2010 08:36:18PM *  3 points [-]

I get 36.0.

#!/usr/bin/python
from random import random
trials=200
hits=0
for i in range(trials):
x=random()
y=random()
if x<.7:
if y<.5:
hits+=1
print 100*(float(hits)/float(trials))