Skip to content

The "pick random" function should accept stringsΒ #167

Open
@adroitwhiz

Description

@adroitwhiz

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.

Metadata

Metadata

Assignees

Labels

compatibilityBugs that cause Leopard's behavior to differ from Scratch's

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions