src/immutable-lodash.js
function sample(iterable) {
  let index = lodash.random(0, iterable.size - 1)
  return iterable.get(index)
}
function sample(iterable) {
  let index = lodash.random(0, iterable.size - 1)
  return iterable.get(index)
}
function sample ( iterable ) { let index = lodash . random ( 0 , iterable . size - 1 ) return iterable . get ( index ) }
Gets a random element from `iterable`.

@static
@memberOf _
@category iterable
@param {Iterable} iterable The iterable to sample.
@returns {*} Returns the random element.
@example

_.sample([1, 2, 3, 4])
// => 2
Gets a random element from iterable .