<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to not get the number twice with Random Value?]]></title><description><![CDATA[<p dir="auto">Recently got back into HyperPad and was working on some games when I noticed the random behaviour tends to output the same number twice, or even more. Any ways to change this?</p>
]]></description><link>https://forum.hyperpad.com/topic/1160/how-to-not-get-the-number-twice-with-random-value</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 12:53:45 GMT</lastBuildDate><atom:link href="https://forum.hyperpad.com/topic/1160.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Apr 2019 03:03:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to not get the number twice with Random Value? on Sat, 20 Apr 2019 04:12:57 GMT]]></title><description><![CDATA[<p dir="auto">The retry if the number generated is the same as the previous method is a lot more simple than what I did 😂.</p>
]]></description><link>https://forum.hyperpad.com/post/7732</link><guid isPermaLink="true">https://forum.hyperpad.com/post/7732</guid><dc:creator><![CDATA[Aidan_Fire]]></dc:creator><pubDate>Sat, 20 Apr 2019 04:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to not get the number twice with Random Value? on Sat, 20 Apr 2019 00:54:59 GMT]]></title><description><![CDATA[<p dir="auto">If the two input numbers are close to each other, it will seem “less random.” Like 1 and 5. The chances of getting the same number twice is 1 out of 10.</p>
<p dir="auto">While inputs 1 and 100 will have the chances being 1 out of 200 of getting the same number twice.</p>
<p dir="auto">You can prevent getting a number twice by using a conditional statement:<br />
<strong>If it’s the same number as previously, retry.</strong></p>
<p dir="auto">The argorithm will repeat itself until it has found a different number. 👌</p>
]]></description><link>https://forum.hyperpad.com/post/7731</link><guid isPermaLink="true">https://forum.hyperpad.com/post/7731</guid><dc:creator><![CDATA[RobinsonX]]></dc:creator><pubDate>Sat, 20 Apr 2019 00:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to not get the number twice with Random Value? on Fri, 19 Apr 2019 14:32:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/linkogames" aria-label="Profile: linkogames">@<bdi>linkogames</bdi></a> You will have to add an if statement to generate another random number if the 2nd one is the same as the 1st (though by doing this you're technically making it less random 😛)</p>
<hr />
<p dir="auto">Or if you're ralking about something that could be a potential bug, it could be due to your behaviours being wired incorrectly or rarely a hyperPad bug,</p>
<p dir="auto">I just tested it right now and it works fine, so maybe it's something wrong with your behaviours, if so, give us a link to download your project that produces these strange results so we can help you,</p>
]]></description><link>https://forum.hyperpad.com/post/7730</link><guid isPermaLink="true">https://forum.hyperpad.com/post/7730</guid><dc:creator><![CDATA[Kamdroid]]></dc:creator><pubDate>Fri, 19 Apr 2019 14:32:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to not get the number twice with Random Value? on Thu, 18 Apr 2019 13:45:41 GMT]]></title><description><![CDATA[<p dir="auto">Here's a link to my example method: <a href="http://bit.ly/2Irp5Cz" target="_blank" rel="noopener noreferrer nofollow ugc">http://bit.ly/2Irp5Cz</a><br />
Tried to explain it with comment behaviours the best I can.</p>
]]></description><link>https://forum.hyperpad.com/post/7729</link><guid isPermaLink="true">https://forum.hyperpad.com/post/7729</guid><dc:creator><![CDATA[Aidan_Fire]]></dc:creator><pubDate>Thu, 18 Apr 2019 13:45:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to not get the number twice with Random Value? on Thu, 18 Apr 2019 13:04:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/linkogames" aria-label="Profile: linkogames">@<bdi>linkogames</bdi></a> You mean you want to use the Random Number behaviour repeatedly, but you don't want the numbers to ever be the same as the previous number? If so, it's possible but needs some logic, I'll help you with it if I've interpreted the question right.</p>
]]></description><link>https://forum.hyperpad.com/post/7728</link><guid isPermaLink="true">https://forum.hyperpad.com/post/7728</guid><dc:creator><![CDATA[Aidan_Fire]]></dc:creator><pubDate>Thu, 18 Apr 2019 13:04:03 GMT</pubDate></item></channel></rss>