oneOf
Script
v2
Fork
1
2
3
4
export
const
oneOf
=
(
options
)
=>
{
if
(
options
.
length
===
0
)
return
null
;
return
options
[
Math
.
floor
(
Math
.
random
(
)
*
options
.
length
)
]
;
}
;