So I have to randomize an x position. But for some reason the middle is 0 and therefore I need to do negative max x and positive max x. It's a little hard to explain so here is the code:
let height = UInt32(self.view!.frame.height)
let nHeight = ((height - height) - height)
let randomXPosition = Int(arc4random_uniform(UInt32(nHeight)) + height)
This doesn't give me any errors but when I run it crashes. I need a way to randomize the value for negative max X and positive max X so that the object is randomized in the screen.