use Array#sample for lotting.

pull-request without testing :p