We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Pick an arbitrary value.
Similar: randomValue, values, hasValue, searchValue.
function randomValue(x, fr) // x: an array // fr: random number generator ([0, 1))
const xarray = require('extra-array'); var x = [1, 2, 3]; xarray.randomValue(x); // → 3 xarray.randomValue(x); // → 2