Some of the legacy functions are not fully supported in all editor versions, here are some alternatives:. To use a custom function, copy and paste the entire function into your question javascript above the main js_answer() function. If you need a refresher on Javascript function notation, see JavaScript Functions [External, W3 Schools].
Function Description | Link to page |
---|---|
Random Integer | Random Integer Function - RandomInt(min, max, pm) |
2 Ranges of random integers | 2 Range Random Integer - twoRangeRand(lower1,upper1,lower2,upper2) |
Automated Formatting | Quest Format to Tex - questSimplifyTex(string math1, bool includePlus) |