I'm working on my thesis (a generative document creator in InDesign). I have years of experience scripting ID via VBA from Access but since I'm on the Mac now I'm using JS...and I'm struggling with some simple things.
Example: I want to use a random number generator. I found sample code in the ID Scripting PDF (although there seems to be a typo) but I would still would like to have more robust math code. Is there any way to import external libraries into .js code?
You can use: