How to use random function in the same table but with restrictions?

SmiteSmite TaiwanMember, PRO Posts: 41

Please give me some advice

I make a table with various names containing animals or objects

as in the picture


I know how to randomly select one of the entire rows

But if I want to restrict the conditions, such as animal category

How do I restrict random content to only animals?

In row1 row3 row5 row6 row10 these are picked randomly

This is the method I randomly selected based on YouTube teachings

If the constraint only randomly selects between selected rows

How can I modify the information I provided?


hope someone can help me

Thank you so much

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    The easiest way is to sort your items and use subranges.

    So if you sort all your animals to the top, you can then choose

    animal: random(1,5)

    item: random(6, 10)

    Make sense?

Sign In or Register to comment.