Pastebin PRO Accounts AUTUMN SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account! Offer Ends Soon!
SHARE
TWEET
LessWrongSurvey_hospital
a guest
Nov 4th, 2012
45
Never
- $l = 45; # Number of births per day, large
- $s = 15; # Number of births per day, small
- # Which will have more days on which >= 0.60 girls?
- $tot_s = 0;
- $tot_l = 0;
- for($i = 1; $i <= 365; $i++) {
- $l_day = 0;
- $s_day = 0;
- for($ll = 1; $ll <= $l; $ll++) {
- $l_day += randnum(0,1,1);
- }
- for($ss = 1; $ss <= $s; $ss++) {
- $s_day += randnum(0,1,1);
- }
- if ($l_day >= 27 ){
- $tot_l++;
- }
- if ($s_day >= 9 ){
- $tot_s++;
- }
- }
- '';
RAW Paste Data
