﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 3  » Random function returns different results in 3.0.6 versus 3.0.4 </title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 15:24:26 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Random function returns different results in 3.0.6 versus 3.0.4</title><link>https://forums.millisecond.com/Topic7285.aspx</link><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It must have been the build of v3.0.6. I tested my code on a different computer and the problem occurred. Since v3.0.6 was installed on this computer (rather than 3.0.4), I installed v3.0.4. and tested the code again. Now, the problem didn't occur. That is why I first thought it had something to do with the new version. I downloaded v3.0.6. again, re-installed it, and now it works fine. Unfortunately, I don't know the build of the previous v3.0.6 installed on this computer.&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;Rob&amp;nbsp;&lt;/p&gt;</description><pubDate>Wed, 25 Jan 2012 08:57:02 GMT</pubDate><dc:creator>robgommans</dc:creator></item><item><title>RE: Random function returns different results in 3.0.6 versus 3.0.4</title><link>https://forums.millisecond.com/Topic7283.aspx</link><description>&lt;p&gt;E.g.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;expressions&amp;gt;&lt;br /&gt;/ myexpression = rand(30,40)&lt;br /&gt;&amp;lt;/expressions&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;text mytext&amp;gt;&lt;br /&gt;/ items = ("&amp;lt;%expressions.myexpression%&amp;gt;")&lt;br /&gt;&amp;lt;/text&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;trial mytrial&amp;gt;&lt;br /&gt;/ stimulusframes = [1=mytext]&lt;br /&gt;/ validresponse = (anyresponse)&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;block myblock&amp;gt;&lt;br /&gt;/ trials = [1-4=mytrial]&lt;br /&gt;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;works perfectly fine for me under 3.0.6.0. You should check whether you're running the very latest build (Dec 19) and/or provide proper context re. your particular use case.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 25 Jan 2012 08:21:28 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Random function returns different results in 3.0.6 versus 3.0.4 </title><link>https://forums.millisecond.com/Topic7282.aspx</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does somebody know why the following line of code returns a different, incorrect number in version 3.0.6, while returning a correct number in version 3.0.4?&lt;/p&gt;
&lt;p&gt;rand(30,40)&lt;/p&gt;
&lt;p&gt;In v3.0.4., it returns a number between 30 and 40. In v3.0.6, it returns -43545435353455 of something like that. In other words, an incorrect number. Should I initialize something first in v3.0.6, before using the random function?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Rob&amp;nbsp;&lt;/p&gt;</description><pubDate>Wed, 25 Jan 2012 07:32:44 GMT</pubDate><dc:creator>robgommans</dc:creator></item></channel></rss>