编辑代码

func differenceCreate(mount:Int){
    for_in 0..<mount {
        let col = Int(arc4random()) % cols
        let row = int(arc4random()) % rows
        errorCords.append((row,col))
        let index= Int (arc4random()) % images.count
        let which = Int(arc4random()) % 2
        ifwhich == 0{
            iv1 [cols*row + col] = images[index]
        }
        else{
            iv2[cols*row + col] = images[index]
        }
    }
}