编辑代码

//函数6:生成不同项的随机位置和随机内容
func differenceCreate(mount:Int)i
for in 0..<mount
let col = Int(arc4random()) 号 cols
号 rows
let row =Int(arc4random())
errorCords.append((row,col))
//从images提供的字符中选择一个
let index =Int(arc4random())号images.count
//选择上面图形,还是下面图形?
let which = Int(arc4random()) 号2
//影响iv1和iv2这两个图形
if which == 0 {
iv1[cols*row + col] = images[index]
}
else{
iv2[cols*row + col]= images[index]
}
}
}