mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix parentheses placement broken in 16413cc
This commit is contained in:
@@ -65,7 +65,7 @@ function random(lower, upper, floating) {
|
||||
if (floating || lower % 1 || upper % 1) {
|
||||
const rand = Math.random()
|
||||
const randLength = `${rand}`.length - 1
|
||||
return Math.min(lower + (rand * (upper - lower + freeParseFloat(`1e-${randLength}`)), upper))
|
||||
return Math.min(lower + (rand * (upper - lower + freeParseFloat(`1e-${randLength}`))), upper)
|
||||
}
|
||||
return lower + Math.floor(Math.random() * (upper - lower + 1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user