Updated

Select one record

PhoneNumber.offset(rand(PhoneNumber.count)).first

Select multiple records, 5 in the following example

PhoneNumber.pluck(:id).sample(5)