Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let x = (drand48() * Double (self.frame.width))
- let y = (drand48() * Double (self.frame.height))
- print (x)
- print (y)
- sprite.position.x = CGFloat (x)
- sprite.position.y = CGFloat (y)
- (297.690124511719, 2.7042236328125)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement