<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to choose random output port in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602255#M95681</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In an express license is randomness deactivated. Only licensed version uses randomness. You can tell then the system to deactivate randomness. Function is called repeat random streams in statistic menu.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Aug 2024 14:55:25 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2024-08-08T14:55:25Z</dc:date>
    <item>
      <title>How to choose random output port</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602252#M95678</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Depending on the case i'd like to choose a random port between 2 numbers. But it is not working, it always choose the same port. &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;/**Custom Code*/&lt;/P&gt;
 &lt;P&gt;Object item = param(1);&lt;/P&gt;
 &lt;P&gt;Object current = ownerobject(c);&lt;/P&gt;
 &lt;P&gt;/***popup:ValuesByCase:valuestr=Port*/&lt;/P&gt;
 &lt;P&gt;/**Port By Case*/&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Variant value = /***tag:ValueFunc*//**/item.persona/**/;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;/***tagex:data*/&lt;/P&gt;
 &lt;P&gt;if (value == /**/1/**/) {
  &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;return /**/1/**/;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;}&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;if (value == /**/2/**/) {
  &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;return /**/1/**/;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;}&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;if (value == /**/3/**/) {
  &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;return /**/duniform(2,4)/**/;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;}&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;if (value == /**/4/**/) {
  &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;return /**/duniform(5,6)/**/;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;}&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;if (value == /**/5/**/) {
  &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;return /**/7/**/;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;}&lt;/P&gt;
 &lt;P&gt;/***/&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;return /***tag:default*//**/1/**/;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;What is wrong?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 11:46:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602252#M95678</guid>
      <dc:creator>SRmariog09</dc:creator>
      <dc:date>2024-08-08T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose random output port</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602253#M95679</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;The code is correct. Does the "persona" label actually exist on the item and are its values in the expected range? If not the code would default to sending all items through port 1.&lt;P&gt;It would be easier to help, if you could upload a model.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:11:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602253#M95679</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-08-08T13:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose random output port</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602254#M95680</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yes it is, the rest of the cases works good. The problem is that when I reset and start de simulation, the cases with the random port go to the same port always
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 14:22:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602254#M95680</guid>
      <dc:creator>SRmariog09</dc:creator>
      <dc:date>2024-08-08T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose random output port</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602255#M95681</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In an express license is randomness deactivated. Only licensed version uses randomness. You can tell then the system to deactivate randomness. Function is called repeat random streams in statistic menu.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 14:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602255#M95681</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-08-08T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose random output port</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602256#M95682</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you so much, I can´t believe it was as simple as that
&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Aug 2024 08:07:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-choose-random-output-port/m-p/13602256#M95682</guid>
      <dc:creator>SRmariog09</dc:creator>
      <dc:date>2024-08-09T08:07:24Z</dc:date>
    </item>
  </channel>
</rss>

