<?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: Using Random function in iLogic what is the Code in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8370447#M84079</link>
    <description>&lt;P&gt;See also an example of using random dimensional parameters and appearances to drive "dynamic" parts and assemblies in Inventor:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cadforum.cz/cadforum_en/random-shape-and-appearance-of-an-inventor-part-or-assembly-tip12046" target="_blank"&gt;https://www.cadforum.cz/cadforum_en/random-shape-and-appearance-of-an-inventor-part-or-assembly-tip12046&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIycUw-bxQ1g%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIycUw-bxQ1g&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIycUw-bxQ1g%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="400" height="225" scrolling="no" title="Náhodné velikosti a vzhledy dílů v sestavě Autodesk Inventoru (random parts)" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 07:37:09 GMT</pubDate>
    <dc:creator>vladimir_michl</dc:creator>
    <dc:date>2018-10-31T07:37:09Z</dc:date>
    <item>
      <title>Using Random function in iLogic what is the Code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8285285#M84077</link>
      <description>&lt;P&gt;I know you can use an operator in the parameters as "random()" to produce a random number &amp;gt;0 and &amp;lt;1 as a decimal, but what is the code for doing this in Inventor iLogic? Random just isn't an expression when it comes to iLogic it just says it's a type. Any Insight ?&lt;/P&gt;&lt;P&gt;I could use it in my parameter but once it is in a formula then "random" stays one value.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 21:48:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8285285#M84077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Random function in iLogic what is the Code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8285607#M84078</link>
      <description>&lt;P&gt;With this piece of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

    'Initialize the random number generator
    '=&amp;gt; Randomize : add this before you call the Rnd function to obtain completely random values
    Randomize
    
    'Random whole number between 1 and 50 :
    random_number = Int(50 * Rnd) + 1
    
    MsgBox (random_number)
    
End Sub&lt;/PRE&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Autodesk Software:&lt;/STRONG&gt; Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018&lt;BR /&gt;&lt;STRONG&gt;Programming Skills:&lt;/STRONG&gt; Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/dimension-component-part-and-assembly/idi-p/7523011" target="_blank"&gt;Dimension Component!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/export-partlist-default-configuration/idc-p/7422221#M21416" target="_blank"&gt;Partlist Export!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/derived-part-and-assembly-copy-i-properties/idi-p/6349392" target="_blank"&gt;Derive I-properties!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/inventor-vault-prompts-settings-amp-vault-prompts-settings-via/idi-p/7641767" target="_blank"&gt;Vault Prompts Via API!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/vault-ideas/vault-professional-handbook-or-manual-to-be-provided/idi-p/7653669" target="_blank"&gt;Vault Handbook/Manual!&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/drawing-toggle-sheets/idi-p/7708757" target="_blank"&gt;Drawing Toggle Sheets!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/open-files-automatically-with-quot-defer-update-quot-on-read/idi-p/7762709" target="_blank"&gt;Vault Defer Update!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;! For administrative reasons, please mark a &lt;STRONG&gt;"Solution as solved"&lt;/STRONG&gt; when the issue is solved !&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 06:07:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8285607#M84078</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-09-22T06:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Random function in iLogic what is the Code</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8370447#M84079</link>
      <description>&lt;P&gt;See also an example of using random dimensional parameters and appearances to drive "dynamic" parts and assemblies in Inventor:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cadforum.cz/cadforum_en/random-shape-and-appearance-of-an-inventor-part-or-assembly-tip12046" target="_blank"&gt;https://www.cadforum.cz/cadforum_en/random-shape-and-appearance-of-an-inventor-part-or-assembly-tip12046&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIycUw-bxQ1g%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIycUw-bxQ1g&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIycUw-bxQ1g%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="400" height="225" scrolling="no" title="Náhodné velikosti a vzhledy dílů v sestavě Autodesk Inventoru (random parts)" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 07:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-random-function-in-ilogic-what-is-the-code/m-p/8370447#M84079</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2018-10-31T07:37:09Z</dc:date>
    </item>
  </channel>
</rss>

