karen Posted May 4, 2023 Share Posted May 4, 2023 in attached hip file, I'm trying to use the preset in the group expression: rand(@elemnum) < 0.3 but then I need it to be different for each row of a grid, such that it varies between 0.3 and 0.7. So I tried: rand(@elemnum) < fit01(rand(detail("../foreach_begin1_metadata1/","iteration",0)),0.3,07) but I get an error: Ambiguous call to function rand(). Candidates are: float rand(float), float rand(vector4), float rand(vector2), float rand(vector) (1,40:43). It's already using the rand in the first section (rand(@elemnum) so I does it refuse my second section? any idea how to fix it? different_random_group_for_each_row.hiplc Quote Link to comment Share on other sites More sharing options...
hannes603 Posted May 4, 2023 Share Posted May 4, 2023 different_random_group_for_each_row2.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.