rlinsurf Posted November 17, 2009 Posted November 17, 2009 I can do them between 0 and 10, but not between 1 or 2 or 3, and some other number. Can someone tell me the way to do this? Thanks.
comment Posted November 17, 2009 Posted November 17, 2009 See if this helps: http://fmforums.com/forum/showtopic.php?tid/173198/post/190659/#190659
rlinsurf Posted November 17, 2009 Author Posted November 17, 2009 I actually just treied this, and it still isn't working. For example, one of the numbers must be between 2-9. So I did this: If(Int(Random*9)+2 ≥ 9;Int(Random*9)-2;Int(Random*9)+2) But this generates everything -2 to 12! I'm lost.
Matthew F Posted November 17, 2009 Posted November 17, 2009 I'm not sure what you're trying to accomplish with your conditional statement. Using your limits of +2 and +9 the formula referenced by comment reduces to: Int ( Random * ( 8 ) ) + 2
Recommended Posts
This topic is 5544 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now