In this code, I am trying to have a variable that holds the random number between 0-3. Then, I want the ball sprite to be assigned to one of the 4 images, chosen randomly by the randomizer variable.
I have an error with this code saying
Instance member 'randomizer' cannot be used on type 'GameScene'
var randomizer = (arc4random_uniform(3))
var ball = SKSpriteNode(imageNamed: "ball\(randomizer)")