Evenly distribute make.numbers.any()

This commit is contained in:
Christoph Diehl 2018-05-09 17:46:20 +02:00
parent e078fde41a
commit a7ac3bc258
No known key found for this signature in database
GPG key ID: 799CE5B68FEF404A

View file

@ -74,9 +74,9 @@ class number extends make {
static any () { static any () {
let value = random.choose([ let value = random.choose([
[10, number.float], [1, number.float],
[10, [number.range, number.tiny]], [1, number.unsigned],
[1, number.unsigned] [1, [number.range, number.tiny]]
]) ])
return random.chance(10) ? -value : value return random.chance(10) ? -value : value
} }