I got the following code:
var myDic = [String: Customer]() let s1 = Customer(\"nameee\", \"email1\") let s2 = Customer(\"nameee2\", \"email2\") let s3 = Customer
Swift 4.2+ (Xcode 10+) introduces two simple possibilities.
Either randomElement:
let randomVal = myDict.values.randomElement()
Or randomElement:
let randomVal = myDict.randomElement().value