Alberto Lacort Posted November 11, 2022 Posted November 11, 2022 How can I use the TableName.PropertyName.RandomRow function in these two situations? 1. If the column of the weights (PropertyName) is determined during the simulation. 2. If I don't want all the rows to be taken into account. For example, only the rows that meet a condition based on other columns in the table. Given Table1 as in the following figure : StringProperty# columns are the filters and RealProperty# columns the weights used for function Random.Row. So, for situation : 1. I want to select one of the RealProperty# columns during the simulation but if I do that I can not use RandomRow because I need to write down the column name (PropertyName). Any suggestions for that? 2. I only want to use the weights that are associated between the rows that have A and X in the first two columns and that, therefore, the selected row is between one of those. Thank you in advance.
Recommended Posts