Array#sample implemented for most cases of passing in count.