chance.js Javascript Library
-
Hello,
I am trying to use the chance.js javascript library.
I have placed it in the Javascript Libraries folder and am testing using various iterations of this:include("chance.js");
The javascript window does not report an error when closing, so i assume it is finding the library file. The monitor is telling me that chance is not defined.
function main() {
let a = chance.d20(); // Rolls a random 20-sided dice
return a;
}Am i doing this correctly? Is it that the chance.js library is incompatible with the isadora javascript engine?
I would appreciate any input here.
Thanks, J