function randomPick(n,t) { return randomBoolean()?n:t; } function Mind() { this.newRun=function(){}; this.endRun=function(){}; this.getAction=function(n){return ACTION_STAYSTILL}; }