Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. let x = (drand48() * Double (self.frame.width))
  2. let y = (drand48() * Double (self.frame.height))
  3.  
  4. print (x)
  5. print (y)
  6.  
  7. sprite.position.x = CGFloat (x)
  8. sprite.position.y = CGFloat (y)
  9.  
  10. (297.690124511719, 2.7042236328125)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement