Math Math const a = Math.max(1, 2); const b = Math.random(); $a = max(1, 2); $b = \Ts2Php_Helper::random();