编辑代码

func distractorCreate(mount:Int){
    for _ in 0..<mount{
        let col = Int(arc4random()) % cols
        let row = Int(arc4random()) % rows
        cords.append((row,col))
        let index = Int(arc4random()) % images.count
        iv1[cols*row + col] = images[index]
        iv2[cols*row + col] = images[index]

    }
}