Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. while(location1 == location2)
  2. {
  3. location2 = random(sizeof(ObjectLocation));
  4. }
  5. while((location1 == location3) || (location2 == location3))
  6. {
  7. location3 = random(sizeof(ObjectLocation));
  8. }
  9. while((location1 == location4) || (location2 == location4) || (location3 == location4))
  10. {
  11. location4 = random(sizeof(ObjectLocation));
  12. }
  13. while((location1 == location5) || (location2 == location5) || (location3 == location5) || (location4 == location5))
  14. {
  15. location5 = random(sizeof(ObjectLocation));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement