Math.random(num = 1)

I hope automatic minifiers aren't doing this. Maybe code-golfers are.

I've heard it said around that adding new parameters to existing functions is not considered a breaking change, unless there's evidence of actual websites doing it. And, indeed, we often see proposals updating function signatures of existing functions to support new parameters.

1 Like