roberttt Posted August 10, 2018 Share Posted August 10, 2018 Hi guys, I have a quick question. How can i get random strength for my constraint in attribute wrangle. For example; i don't want f@strength = 1; i just want to make it between 1 and 10. Thanks. Quote Link to comment Share on other sites More sharing options...
Sepu Posted August 10, 2018 Share Posted August 10, 2018 you can use a fit function i@strength = int(fit01(rand(@primnum + chf("seed")), 1, 10)); 1 Quote Link to comment Share on other sites More sharing options...
roberttt Posted August 10, 2018 Author Share Posted August 10, 2018 (edited) 11 minutes ago, Sepu said: you can use a fit function i@strength = int(fit01(rand(@primnum + chf("seed")), 1, 10)); thanks Sepu . What if i want to write decimal numbers like 0.1, 1 or 0.5, 0.9. What should i do for that? Edited August 10, 2018 by roberttt Quote Link to comment Share on other sites More sharing options...
roberttt Posted August 10, 2018 Author Share Posted August 10, 2018 ok i got it now Thanks again Sepu 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.