3 added 10 characters in body
source | link

C, 101101 95

main(){float c,s,t=0,i=0t,I=5e4;fori;main(;i<I*2;i++){for(;i<1e5;i++,c=rand()%3,s=rand()%3)i>I&ci>5e4&c!=s?t++:t;printf("%f",t/I5e4);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71 6565 59:

main(p,ii;main(){for(p=i=0;i<1e5;rand;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because it saves a character. I'm probably missing quite a few tricks, but I did the best I could.

C, 101

main(){float c,s,t=0,i=0,I=5e4;for(;i<I*2;i++,c=rand()%3,s=rand()%3)i>I&c!=s?t++:t;printf("%f",t/I);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71 65:

main(p,i){for(p=i=0;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because it saves a character. I'm probably missing quite a few tricks, but I did the best I could.

C, 101 95

float c,s,t,i;main(){for(;i<1e5;i++,c=rand()%3,s=rand()%3)i>5e4&c!=s?t++:t;printf("%f",t/5e4);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71 65 59:

p,i;main(){for(;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because it saves a character. I'm probably missing quite a few tricks, but I did the best I could.

2 deleted 15 characters in body
source | link

C, 101

main(){float c,s,t=0,i=0,I=5e4;for(;i<I*2;i++,c=rand()%3,s=rand()%3)i>I&c!=s?t++:t;printf("%f",t/I);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 7171 65:

main(p,i){float p=0,i=0;forfor(;i<1e5;randp=i=0;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because, again, the rules didn't say I couldn't it saves a character. I'm probably missing quite a few tricks, but I did the best I could.

C, 101

main(){float c,s,t=0,i=0,I=5e4;for(;i<I*2;i++,c=rand()%3,s=rand()%3)i>I&c!=s?t++:t;printf("%f",t/I);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71:

main(){float p=0,i=0;for(;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because, again, the rules didn't say I couldn't. I'm probably missing quite a few tricks, but I did the best I could.

C, 101

main(){float c,s,t=0,i=0,I=5e4;for(;i<I*2;i++,c=rand()%3,s=rand()%3)i>I&c!=s?t++:t;printf("%f",t/I);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71 65:

main(p,i){for(p=i=0;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because it saves a character. I'm probably missing quite a few tricks, but I did the best I could.

1
source | link

C, 101

main(){float c,s,t=0,i=0,I=5e4;for(;i<I*2;i++,c=rand()%3,s=rand()%3)i>I&c!=s?t++:t;printf("%f",t/I);}

That's for the actual simulation. For some cheaty rule-bending code, it's only 71:

main(){float p=0,i=0;for(;i<1e5;rand()%5>1?i++:p++)printf("%f",p/1e5);}

I didn't do srand() because the rules didn't say I had to. Also, the cheaty version prints out about 30,000 extra numbers because, again, the rules didn't say I couldn't. I'm probably missing quite a few tricks, but I did the best I could.