Jump to content

different random group for each row


Recommended Posts

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.png

different_random_group_for_each_row.hiplc

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...