function Mind() { //--- public functions / interface / API ---------------------------------------------------------- this.newRun = function() { }; this.getAction = function ( x ) // x is an array of [ ai, aj, ei, ej ] { return ( randomintAtoB (0,3) ); }; this.endRun = function() { }; }