fix(sandbox): fix wrong `Math.random` replacement causes compilation to be failed
diff --git a/src/editor/sandbox/setup.js b/src/editor/sandbox/setup.js
index 97f1ab5..8bf3941 100644
--- a/src/editor/sandbox/setup.js
+++ b/src/editor/sandbox/setup.js
@@ -123,7 +123,7 @@
         // run the code
         const compiledCode = store.runCode
           // Replace random method
-          .replace(/Math.random\(.*\)/g, '__ECHARTS_EXAMPLE_RANDOM__()');
+          .replace(/Math.random\([^)]*\)/g, '__ECHARTS_EXAMPLE_RANDOM__()');
         const echartsExampleRandom = new Math.seedrandom(store.randomSeed);
 
         const func = new Function(