User report: The numpy.random.choice function is failing.
The problem is caused by Pyodide not converting numpy types properly. The numpy.random.choice function returns an numpy.int32 type which gets converted to an empty array for some reason.
Mitigation: Use random.choice or convert the numpy choice to a python int.