Read randomizely a String from a Json per Swift3 : i have a question. Sorry, my english isn't the best one and i hope you understand what i want.

I have a Json file like this :

{
    9898989,
    7878787,
    1212121,
    2323232,
    4545454,
    3434343
}


Now, i want that the Swift3 code reads randomizely one of the id's from the json file (tests_config.json).

My code shows at the moment like this :

let inputData = try! Data(contentsOf: Bundle(for: type(of: self)).url(forResource: "tests_config", withExtension: "json")!)

let configDictionary = try! JSONSerialization.jsonObject(with: inputData, options: JSONSerialization.ReadingOptions()) as! NSDictionary


When i want call the function i use :

showDetailsPage(forProductID: configDictionary[ONE OF THE IDs IN THE JSON] as! Int)

Can you help me please?

Thanks a lot!