<?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: rand() result &amp;gt; 1.0 in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540773#M4282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot reproduce the issue with your app in v11.2 SR5:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rand.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51213_rand.png" /&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2014 08:35:46 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2014-01-08T08:35:46Z</dc:date>
    <item>
      <title>rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540765#M4274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just ran a script in which rand() appears to have returned a value greater than 1 !&amp;nbsp; I actually wanted to test empirically if it'd return exactly 0 or 1 (the documentation on it not being crystal clear on this point), and was surprised to get this result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I rand a script to call rand() a billion times and pick-out the min &amp;amp; max values, resulting in the following Script Execution Progress dialog box output:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rands &amp;lt;&amp;lt; AUTOGENERATE(1000000000) 1 lines fetched&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMIN=4.6566128774142e-010&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMAX=1.0000000004657&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in QV Developer 11.00.11414.0 SR2.&amp;nbsp; QVW is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone else get this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540765#M4274</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2025-07-23T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540766#M4275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the same result on my third reload. I think this should be submitted as a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV Desktop v11.20.12018.0 SR3 x64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 08:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540766#M4275</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-19T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540767#M4276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has now been reported to QlikTech, Bug ID #65575. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 02:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540767#M4276</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2013-09-20T02:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540768#M4277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikTech support has come back to be and reported that after an in-depth analysis, yes, rand() can return values &amp;gt;1.0 but is by design"! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;"&lt;SPAN style="font-family: arial;"&gt;Dear Angus, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial;"&gt;Regarding this issue, our R&amp;amp;D did an in-depth investigation and came out with a conclusion that this is actually by design. They also summarized the findings into an article, which is attached to this email. Should you need any further assistance please let me know. Or please confirm if we can close this support case.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; (See attachment for their article).&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I am shocked and absolutely appalled by this response, that they should dismiss this behaviour as being "as designed" when it clearly breaks its contract.&amp;nbsp; What do other people here think about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 23:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540768#M4277</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2013-10-13T23:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540769#M4278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would agree that it's an unsatisfactory answer. The doc, both pdf and help, only state:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Returns a random number between 0 and 1."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If R&amp;amp;D is stating that it's ok to return something other than 1, then it's a documentation bug. I would ask to escalate the issue, and have it accepted as either a behavior bug or a doc bug. It seems it has to be one or the other. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 20:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540769#M4278</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-10-14T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540770#M4279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rounding is not a really good idea. A test showed it creates accumulations of values even on small amount (50k) of records/calls of rand()..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 10:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540770#M4279</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-10-15T10:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540771#M4280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikTech have now accepted this as bug #65575, related to how the random seed is generated.&amp;nbsp; "The probability for the issue to occur is consider to be approx. 1 every 2 billion random values, with an&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;increased probability the closer to 2 billion generated you get."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 10:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540771#M4280</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2013-10-16T10:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540772#M4281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikTech have notified me that this bug is now fixed in 11.2SR5(12235).&amp;nbsp;&amp;nbsp; I'm not in a position to verify this for myself at the moment, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 23:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540772#M4281</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2014-01-07T23:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540773#M4282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot reproduce the issue with your app in v11.2 SR5:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rand.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51213_rand.png" /&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 08:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540773#M4282</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-01-08T08:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: rand() result &gt; 1.0</title>
      <link>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540774#M4283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good one - thanks Ralf!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 22:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/rand-result-gt-1-0/m-p/540774#M4283</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2014-01-08T22:45:10Z</dc:date>
    </item>
  </channel>
</rss>

