Running Randomtest from command line


I have a problem running Randomtest from the command line on Windows 10. I’m using the most recent ChoiceScript build from github.

When I run Randomtest without specifying a number of playthroughs, it goes through once. But when I specify a number (by entering randomtest 1000, for example), it stops and displays the following error:

js: "randomtest.js", line 38: exception from uncaught JavaScript throw: Error: COuldn't parse argument 1: 1000

Running Randomtest in the browser works fine. Using the command line worked a while back on my computer, so I’m not sure what’s changed now - am I doing something wrong, or is this a bug?


What’s the exact command that you’re running?


I go to the game directory, then enter randomtest 1000 (or whatever number I’m after).


The argument is missing. randomtest num=1000


That’s now working. Thank you!