Jump to content

Random carve with copy stamp (noob alert)


Werner

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...