Werner Posted July 13, 2015 Share Posted July 13, 2015 Hi, I have a curve that was copied a couple of times down in Y, and want to carve the length randomly with copystamp. I'm missing something because each copy gets exactly the same carve length. this is what I have in stamp Variable 1 = C Value 1 = rand($PR+123) On the carve I have the normal stamp function stamp("../copy2","C",0) How can I randomise the values per copy? Quote Link to comment Share on other sites More sharing options...
Werner Posted July 13, 2015 Author Share Posted July 13, 2015 Argh...$PR was wrong. It should be $CY for each copy. Never mind. It's working now. Quote Link to comment Share on other sites More sharing options...
Maurits Posted July 14, 2015 Share Posted July 14, 2015 Hey Werner For a better random result you might want to change your rand($CY+123) to something like this rand($CY*0.123) especial if you use the $CY in other rand() functions as well. By multiplying the value in each rand() with a different number instead of adding a value you decrease the change of getting the same result when using the rand function multiple times. Quote Link to comment Share on other sites More sharing options...
Werner Posted July 20, 2015 Author Share Posted July 20, 2015 Hey Werner For a better random result you might want to change your rand($CY+123) to something like this rand($CY*0.123) especial if you use the $CY in other rand() functions as well. By multiplying the value in each rand() with a different number instead of adding a value you decrease the change of getting the same result when using the rand function multiple times. Thanks Maurits, I will give it a go. 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.