<![CDATA[Random Number Inconsistency With Negative Values And Decimal Values]]>When a random number is picked between two positive values, both numbers can be selected, but when a negative number is used, the lower bound is one higher. For example, a random number between 1 and 3 can return 1, 2, or 3. But a random number between -1 and 1 will only return 0 or 1. The lower value is not included. I've always worked around this, but it's slightly annoying. Another bug with random numbers is that when a decimal is used, it ceilings the upper bound. For example, a random number between 0.0 and 1.3 can return 1.9.
EDIT: after further testing, it turns out it doesn't ceiling the upper bound, but adds one. So the previous example could even return 2.2.
]]>http://forum.hyperpad.com/topic/142/random-number-inconsistency-with-negative-values-and-decimal-valuesRSS for NodeWed, 26 Jun 2019 11:51:53 GMTMon, 28 Nov 2016 12:21:50 GMT60<![CDATA[Reply to Random Number Inconsistency With Negative Values And Decimal Values on Mon, 28 Nov 2016 12:23:35 GMT]]>When a random number is picked between two positive values, both numbers can be selected, but when a negative number is used, the lower bound is one higher. For example, a random number between 1 and 3 can return 1, 2, or 3. But a random number between -1 and 1 will only return 0 or 1. The lower value is not included. I've always worked around this, but it's slightly annoying. Another bug with random numbers is that when a decimal is used, it ceilings the upper bound. For example, a random number between 0.0 and 1.3 can return 1.9.
EDIT: after further testing, it turns out it doesn't ceiling the upper bound, but adds one. So the previous example could even return 2.2.
]]>http://forum.hyperpad.com/post/781http://forum.hyperpad.com/post/781Mon, 28 Nov 2016 12:23:35 GMT<![CDATA[Reply to Random Number Inconsistency With Negative Values And Decimal Values on Wed, 28 Dec 2016 23:22:56 GMT]]>For any new random number behaviour, this is fixed.
]]>http://forum.hyperpad.com/post/994http://forum.hyperpad.com/post/994Wed, 28 Dec 2016 23:22:56 GMT<![CDATA[Reply to Random Number Inconsistency With Negative Values And Decimal Values on Thu, 29 Dec 2016 05:14:23 GMT]]>In the next update (1.17)
]]>http://forum.hyperpad.com/post/995http://forum.hyperpad.com/post/995Thu, 29 Dec 2016 05:14:23 GMT<![CDATA[Reply to Random Number Inconsistency With Negative Values And Decimal Values on Thu, 29 Dec 2016 06:23:21 GMT]]>@Murtaza will there be a new TestFlight beta released soon?
]]>http://forum.hyperpad.com/post/996http://forum.hyperpad.com/post/996Thu, 29 Dec 2016 06:23:21 GMT<![CDATA[Reply to Random Number Inconsistency With Negative Values And Decimal Values on Thu, 29 Dec 2016 15:44:28 GMT]]>@Jack8680 right now. Go check the testflight app or your emails for the latest build.
]]>http://forum.hyperpad.com/post/998http://forum.hyperpad.com/post/998Thu, 29 Dec 2016 15:44:28 GMT