title: How can I generate large, ranged random numbers in Swift?
body: <p>I'm looking for an efficient method of generating large numbers (that includes floating point types!) in Swift, with arbitrary ranges (which may even be <code>UInt.max</code> or <code>Int.max</code>)</p>
  
  <p>All the existing questions I've seen either crash for large values (<code>UInt.max</code>) or don't support ranges. I know that you can read from <code>/dev/urandom</code> for random bytes, but that doesn't help restrict these values to a given interval (and I'm pretty sure looping until it does isn't efficient).</p>