Math.random() suddenly not working
I have imported into a current project an old project that had a fair bit of code, including quite a few Math.random() functions. This project worked fine at the time.
After Effects is reporting all the uses of Math.Random() as scripting errors: "Error: Math.random is undefined"
If I delete and re-type in the expression again exactly as it was, the error changes to: "Error: Math.random is not a function"
It seems like the Math scripting module(?) is not loading properly - but functions like "Math.floor()" work fine.
It is not complicated scripting. An example is (on a slider expression control):
1+Math.floor(Math.random(2));
Can anyone help?
