Random numbers can be created using random(in: ) function. Share this:TwitterFacebookLike this:Like Loading... Post navigation Integer- floating point conversion in Swift How to select an element randomly from an array in Swift?