leopard icon indicating copy to clipboard operation
leopard copied to clipboard

The "pick random" function should accept strings

Open adroitwhiz opened this issue 1 year ago • 0 comments

Scratch dynamically decides whether the "pick random" function should return an integer or a float based on whether or not its numeric inputs contain any decimal points. This is done with the string representation of the number, so e.g. "1.000" still counts as decimal.

Fixing this requires recoding the random function to accept strings.

adroitwhiz avatar Mar 08 '23 02:03 adroitwhiz