Spec, tests, reference implementation, and docs for Array.prototype.sample