thomas_lienert Posted August 5, 2021 Share Posted August 5, 2021 Is it possible to specify the random stream used for the RandomRow function? Link to comment Share on other sites More sharing options...
MauricioBiolato Posted August 9, 2021 Share Posted August 9, 2021 If what you are looking for is to define a specific row in a table you might check the SET ROW step. Rds. Link to comment Share on other sites More sharing options...
gocken Posted September 19, 2021 Share Posted September 19, 2021 Leaving it as is should work for your purposes? Link to comment Share on other sites More sharing options...
nelsonb Posted May 4, 2022 Share Posted May 4, 2022 I would like to return to this topic: Controlling the random number stream for RandomRow. I need to do this because I am repeatedly invoking Simio from another program (Matlab or Python), and when I execute Simio (say) the second time I want to generate replications that are independent of the first time. I have no problem passing stream numbers to Simio, but of course RandomRow uses its default (which I assume is stream 0). If I can't get access to the stream, then I would be interested in how to code a SET ROW step that is the equivalent of RandomRow using a column of the table for selection. Link to comment Share on other sites More sharing options...
gocken Posted May 5, 2022 Share Posted May 5, 2022 Hi Barry, I tried a bit and I am quite sure that PartTypes.HowMuch.RandomRow(RandomNumberStream) works. Use integers for RandomNumberStream to set/get the specific random streams. I tested it on RandomValueFromTable simbit (i.e., PartTypes.HowMuch.RandomRow(0), PartTypes.HowMuch.RandomRow(1)) and get different results for each. Also, when I restart the simulation I got the same results for each, as well. Link to comment Share on other sites More sharing options...
Recommended Posts