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.
function randomValue(x, fr) // x: a set // fr: random number generator ([0, 1))
const set = require('extra-set'); var x = new Set([1, 2, 3]); set.randomValue(x); // → 3 set.randomValue(x, 0.5); // → 2