title: Random Double number in swift between 0 and 1
body: <p>I'm trying to generate random double numbers between 0 and 1 but I'm getting always 0</p>
  
  <pre><code>func randFunct() -&gt; Double {
       let randomInt = arc4random_uniform(100) + 1 // [1, 100]
       let randomDouble : Double = Double(randomInt/100)
       return randomDouble
  }
  </code></pre>