use Array#sample method instead of Random.rand thing