|
-
Jun 21st, 2009, 02:32 PM
#1
Thread Starter
Lively Member
Get random int, but number can't be near specific range?
Hello. I want to generate a random number but it can't be within 35 of a coordinate.
I'm generating two numbers here. One for x and the other for y. I want x to be 0-720. But say the x coordinate of my character is currently 500. It cant generate the number 465-535. And the same thing in mind when generating the y coordinate.
How would I go about doing this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|