title: Spinning Roulette in swift 4
body: <p>I recently started learning to code. I'm trying to make an app with a spinning roulette and found this online. I can get the roulette to spin, but it ends up in the same exact place every time I spin it, so I want it to end up in a random place every new spin. I hope somebody could help. Thanks in advance!</p>
  
  <pre><code>UIView.animate(withDuration: 5, delay: 0, options: [UIView.AnimationOptions.curveEaseOut], animations: {
  
          for _ in 0..&lt;10 {
              self.ruleRut.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi * 1))
              self.ruleRut.transform = CGAffineTransform(rotationAngle: 0)
          }
      })
  </code></pre>