title: return random dictionary items in swift
body: <p>I'm trying to return a random name and a random email from this function have got so far but I'm wondering what should I be returning here obviously as I want to return a tuple it needs to be 2 string values which I need randomly from my function</p>
  
  <pre><code>func randomAuthor () -&gt; (name : String, email : String) {
  
      struct Author {
  
          var name : String
          var email : String
  
      }
  
      let firstAuthor = Author(name: "jon", email: "jonsEmail")
      let secondAuthor = Author(name: "richard", email: "richardsEmail")
      let thirdAuthor = Author(name: "steve", email: "stevesEmail")
      let fourthAuthor = Author(name: "simon", email: "simonsEmail")
      let fifthAtouh = Author(name: "wes", email: "wesEmail")
  
      var dictionary = [firstAuthor.name : firstAuthor.email, secondAuthor.name : secondAuthor.email, thirdAuthor.name : thirdAuthor.email, fourthAuthor.name : fourthAuthor.email, fifthAuthor.name : fithAtouh.email]
  
      var unsignedDictionaryCount = UInt32(dictionary.count)
      var unsignedRandom = arc4random_uniform(unsignedDictionaryCount)
      var random = unsignedRandom
  
  
      return()
  
  }
  </code></pre>
  
  <p>any help appreciated
  thanks</p>