title: CollectionView populate at randomIndex in Swift
body: <p>I have a colllectionView running successfully which grabs url image content from web link .I am trying to populate collectionView at random index once every time view loads.my try as below...</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
   self.collectionView.reloadData()
  }
  
  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
     let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath as IndexPath) as! Cell
  
      let randomIndex = Int(arc4random_uniform(UInt32(apps.count)))
  
      cell.app = apps[randomIndex] as? AppInfo
  
      return cell
  }
  </code></pre>
  
  <p>Above method reload the collectionView everytime page scrolls. I am trying to achieve reload once only...</p>
  
  <p>Thanks in Advance....</p>