|
-
August 30th, 2009, 11:10 AM
#3
Re: need help using random if statement
Thanks for help but I figured it out. Well it's not a very efficient solution but here is what I did.
I just got a random number from 1 to 4, then just put in the if statement that checks if it is open or not, to also check if the number is their unique number for that if statement.
Like I said a small amount of time could be wasted using this method. But it still works just fine because if it happens to choose a number that the door is open on. it will still be open until the random number can actually be used. So all is well. thanks though.
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
|