Shobhana soni Posted September 23, 2017 Report Share Posted September 23, 2017 How to write a constraint for random variable which is divisible by 7 && 17 Quote Link to comment Share on other sites More sharing options...
uwes Posted September 25, 2017 Report Share Posted September 25, 2017 a rand var which divides by 7 and 17 can be divided by 7*17 (since both are prime). so the constraint should be as simple as x % (7*17) == 0 //uwe Quote Link to comment Share on other sites More sharing options...
Shobhana soni Posted October 8, 2017 Author Report Share Posted October 8, 2017 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.