What codes can I use in order to make music from parse I uploaded play shuffled for an app created by Xcode in swift language? : This is what I have so far...
                  let query = PFQuery(className: "Genres")
                  //Find objects in the background
                   query.findObjectsInBackgroundWithBlock({
            //store objects in an array
            (objectsArray :[PFObject]?, error: NSError?) -> Void in
            
            let objectIDs = objectsArray
            // objects being added to array
            for i in 0...objectIDs!.count-1{
            // add a new element in the array
            self.iDArray.append(objectIDs![i].valueForKey("objectId") as! String)
            //store song name in song array
            self.NameArray.append(objectIDs![i].valueForKey("SongName")as! String)
            self.tableView.reloadData()
             
            NSLog("\(objectIDs)")
                
            }
            
        })
    }
    
    func grabSong () {
        let songQuery = PFQuery(className: "Genres")
        songQuery.getObjectInBackgroundWithId(iDArray[SelectedSongNumber], block: {
            (object: PFObject?, error : NSError?) -> Void in
            
            if let audioFile = object?["SongFile"] as? PFFile {
                let audioFileUrlString: String = (audioFile.url)!
                let audioFileUrl = NSURL(string: audioFileUrlString)!
                AudioPlayer = AVPlayer(URL: audioFileUrl)
                AudioPlayer.play()
            }
        })
    }
