Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(location1 == location2)
- {
- location2 = random(sizeof(ObjectLocation));
- }
- while((location1 == location3) || (location2 == location3))
- {
- location3 = random(sizeof(ObjectLocation));
- }
- while((location1 == location4) || (location2 == location4) || (location3 == location4))
- {
- location4 = random(sizeof(ObjectLocation));
- }
- while((location1 == location5) || (location2 == location5) || (location3 == location5) || (location4 == location5))
- {
- location5 = random(sizeof(ObjectLocation));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement