Jump to content

RandomRow and random streams


Recommended Posts

  • 1 month later...
  • 7 months later...

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

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

×
×
  • Create New...