Using the script node

I’d like to have some discussion about using the script node. I’m totally new to haxe and a really bad programmer. :slight_smile: My first question:

I can use Math.random() in the script node, but not Std.random(). When I try, Krom just hangs with no error message. Do I need to import something or how does it work?

Pushed a fix, Std.random() should now work as well! Script node uses hscript and interprets the code at runtime, so it’s a bit more restricted.