<?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: Random number generator in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7954#M3339</link>
    <description>&lt;P&gt;thanks...&amp;nbsp; was hoping a formula so I wouldn't have to use a task but if this is the only way.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 17:31:22 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2024-10-04T17:31:22Z</dc:date>
    <item>
      <title>Random number generator</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7951#M3336</link>
      <description>&lt;P&gt;is there a way to create a random number?&lt;/P&gt;&lt;P&gt;I have a very rare use case that will require me to append something to an end of a number to make it unique.&lt;/P&gt;&lt;P&gt;rather than creating a variable and looping through it adding 1 (eating up tasks)&lt;/P&gt;&lt;P&gt;was wondering if there was some trick to just add a random number to my field to ensure its unique in this one off scenarios&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 15:32:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7951#M3336</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2024-10-04T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Random number generator</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7953#M3338</link>
      <description>&lt;P&gt;It's kinda silly, but "rand" isn't supported as a formula method. It works in a Ruby action though.&lt;/P&gt;&lt;P&gt;Make a Ruby action, add an output field called "random_number", and use this as the code:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;{random_number: rand(100)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This will generate a random number between 0 and 99. You can update "100" to increase the range. If you want the range to start at 10000 for example, just add 10000 to the result.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 16:15:19 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7953#M3338</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-10-04T16:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Random number generator</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7954#M3339</link>
      <description>&lt;P&gt;thanks...&amp;nbsp; was hoping a formula so I wouldn't have to use a task but if this is the only way.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 17:31:22 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/random-number-generator/m-p/7954#M3339</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2024-10-04T17:31:22Z</dc:date>
    </item>
  </channel>
</rss>

