Files
blockly/generators
Neil Fraser e950b8de47 fix: JS random int block with non-ints.
Previously random_int(2.4, 2.6) would return 2.  This is wrong.  NaN is better; it's the same as random_int("hello", []).

Python, Lua, PHP all have their own native functions for random int, so we just use their native behaviours.  Dart is another matter (separate PR).

I think making this block more accurate is worth the code given that a LOT of kids use "random integer" for stuff.

Also re-flow the Math test blocks, they were overlapping.
And the Dart interpreter link has changed URLs.
2023-12-08 23:52:44 +01:00
..