Added #random and #sample to ActiveRecord, tests included.