Jon Posted February 9, 2004 Share Posted February 9, 2004 I am trying to use a copy op to randomly rotate some screw heads, and I have managed to do this sucessfully by using the CY (copy number) as the seed to the rand() expression. However, I'm having some problems in that if I have two copy ops that both copy the screw head 4 times, both of the two sets of four screw heads will be rotated in the same way. Any ideas of how I might be able to ramdomise all the screw heads individually, in order to overcome this? thanks, Jon Quote Link to comment Share on other sites More sharing options...
David Gary Posted February 9, 2004 Share Posted February 9, 2004 rand() is not real random! Rand() is a deterministic function that "looks like" random distribution. So, if x=y -> rand(x)=rand(y). why not change the seed of the rand function? use rand($CY) for one CopySOP and+rand($CY+1425) or any number... hope i understood your problem ! Quote Link to comment Share on other sites More sharing options...
Jon Posted February 10, 2004 Author Share Posted February 10, 2004 cheers, that's helped out a lot. think i was just overlooking a fairly obvious solution. thanks, jon 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.