How can I generate a random alphanumeric string in Swift?
Simple and Fast -- UUID().uuidString
// Returns a string created from the UUID, such as "E621E1F8-C36C-495A-93FC-0C247A3E6E5F"
public var uuidString: String { get }
https://developer.apple.com/documentation/foundation/uuid
Swift 3.0
let randomString = UUID().uuidString //0548CD07-7E2B-412B-AD69-5B2364644433
print(randomString.replacingOccurrences(of: "-", with: ""))
//0548CD077E2B412BAD695B2364644433
EDIT
Please don't confuse with UIDevice.current.identifierForVendor?.uuidString it won't give random values.