Evenly distribute make.numbers.any()
This commit is contained in:
parent
e078fde41a
commit
a7ac3bc258
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@ class number extends make {
|
|||
|
||||
static any () {
|
||||
let value = random.choose([
|
||||
[10, number.float],
|
||||
[10, [number.range, number.tiny]],
|
||||
[1, number.unsigned]
|
||||
[1, number.float],
|
||||
[1, number.unsigned],
|
||||
[1, [number.range, number.tiny]]
|
||||
])
|
||||
return random.chance(10) ? -value : value
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue