generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Should we allow calls of the form Random.number(10, 1)
, in addition to the standard Random.number(1, 10)
? In the most naive version of the method (return Random.random()*(b - a) + a
), this Just Works automatically; the b-a
term ends up negative and counts down from the (higher) a
value, so you still cover the same range either way. (Modulo the edge values, possibly.)
I'm inclined to allow it.
Metadata
Metadata
Assignees
Labels
No labels