title: How do I randomly generate a valid E164-formatted phone number in Ruby?
body: <p>For automated tests of my Rails app, I'd like to generate random phone numbers.</p>
  
  <ul>
  <li>Like all phone numbers in my system, these must be in E164 format.</li>
  <li>They must be valid phone numbers. (e.g. according to <a href="https://github.com/googlei18n/libphonenumber" rel="nofollow noreferrer">https://github.com/googlei18n/libphonenumber</a>).</li>
  <li>Ideally non-US numbers are included.</li>
  </ul>
  
  <p>How should I approach this?</p>