Shobhana soni Posted September 23, 2017 Report Posted September 23, 2017 How to write a constraint for random variable which is divisible by 7 && 17 Quote
uwes Posted September 25, 2017 Report 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
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.