Finally worked it out: the Random class in the JVM...
# multiplatform
n
Finally worked it out: the Random class in the JVM has overridable methods, so I have to define the methods as open in the header class definition, and define the class in the JS code as open, with open methods.