我正在使用以下代码为游戏中的玩家生成随机图像。varplayerTexture=[SKTexture]()playerTexture.append(SKTexture(imageNamed:“red”))playerTexture.append(SKTexture(imageNamed:“blue”))playerTexture.append(SKTexture(imageNamed:“green”))letrand=Int(arc4random_uniform(UInt32(playerTexture.count)))letchosenColor=playerTexture[rand