I got the following code:
var myDic = [String: Customer]() let s1 = Customer(\"nameee\", \"email1\") let s2 = Customer(\"nameee2\", \"email2\") let s3 = Customer
Swift 5+ (Xcode 12+) introduces randomise Dictionary key also
let randomVal = myDict.randomElement()?.key