This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function montyhallSimulation(playerChangeOpt, testcases) | |
{ | |
playerChangeOpt = typeof playerChangeOpt !== 'undefined' ? playerChangeOpt : true; | |
testcases = typeof testcases !== 'undefined' ? testcases : 100; | |
var right = 0, wrong = 0; | |
for(i=0 ; i<testcases ; i++) { | |
var carPos = Math.floor(Math.random()*3); | |
var playerOpt = Math.floor(Math.random()*3); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
UserCake Version: 2.0.2 | |
http://usercake.com | |
Portuguese Translation | |
*/ | |
/* | |
%m1% - Dymamic markers which are replaced at run time by the relevant index. | |
*/ |
NewerOlder