karen Posted May 22, 2020 Share Posted May 22, 2020 I have a for each loop that run over each one of these primitives, each has 4 points, (0,1,2,3). I need to create chaos in the order of points so I use sort with random for points, the problem is I get the same change to all of them. How to randomise that? Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 22, 2020 Share Posted May 22, 2020 (edited) the sort has a seed, so simply use the iteration of your loop as the seed ? Edited May 22, 2020 by Noobini Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 22, 2020 Share Posted May 22, 2020 here's an illustration, using the same grid throughout the order of the points now are all screwed (ahem...random) so the nice grid is no longer nice... vu_sortSeed.hiplc 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.