Hi, I need to iterate over a large table. In each iteration I get around 10 lines of my table and I need to select (and mark in a new column) one line randomly. Is there a node to do this?
E. g.
Row value1 value2
Row0 2 4
Row1 4 5
I want to have a new table and get:
Row value1 value2 randomlySelected
Row0 2 4 0
Row1 4 5 1
you are totally right! Overlook made by me. So to still take similar approach (albeit not one node solution) floor(rand() * 10) can be calculated inside Math Formula (Variable) node and then fixed value will be used in if() function of Math Formula node. This time should work as it is better tested