Problem with random integer between python and JavaScript code

Hey,

Been a while since I posted here - just kind of lurking now - but I’m fairly certain that the randint is the one from numpy where it is exclusive of the max. Been in since like version 1.70.00 or something (check the changelog).

In the transpiler.py, there was a commit to fix the randint translation to remove the upper limit inclusivity (ie to make your autoTranslated code exclude the upper limit, similar to the numpy.random.randint) - this can be seen here.

I’m assuming this will make it into a future release since it was accepted so I’d plan accordingly.

Edit: I’ll also add in the pull here with notes that it was part of - here. I always just search the repo whenever something does something unexpected, see if it’s raised in any PRs, commits or issues as well as code base.

Ferenc