Either the generator is expanded client-side (with javascript), but preferable the API should be able to evaluate custom functions. In the latter case, this also makes it possible to support other functions such as statistical distributions, e.g. InvNorm(0.95, mean, lambda), NormalCdf(-inf, 10, mean, sd), ...
There should be a few functions that generate a list of elements.
See: https://stackoverflow.com/questions/27960965/parsing-an-equation-with-custom-functions-in-python
Possible generators are:
Either the generator is expanded client-side (with javascript), but preferable the API should be able to evaluate custom functions. In the latter case, this also makes it possible to support other functions such as statistical distributions, e.g. InvNorm(0.95, mean, lambda), NormalCdf(-inf, 10, mean, sd), ...