title: How to get a random number from min to max inclusive
body: <pre><code>use rand::Rng;
  fn main() {
      let mut zz = rand::thread_rng();
      let mut a: [i32; 4096] = [0; 4096];
      for n in 0..4096 {
          a[n] = zz.gen_range(-2147483648,2147483647);
      }
      ......
  }
  </code></pre>
  
  <p><code>gen_range(a,b)</code> can get a random number from <code>a</code> to <code>b</code>, but not included <code>b</code>.<br>
  If I write <code>gen_range(-2147483648,2147483648)</code>, it can't work, because <code>gen_range -&gt; (i32,i32)</code>  </p>
  
  <p>So, what should I do?</p>