{"identifier":61729,"topic":"Functions","name":"random","text":"<code><pre>the random of <i>posInteger<\/i>\n<\/pre><\/code>\nValue returned: a random integer between 1 and<code> <i>posInteger<\/i><\/code> <br><br>\n\n <code>Random <\/code>returns values for integers up to<code> 2^31 - 2<\/code>. <br>\n","related":{"32809":null},"examples":"","demo":"on hyperMath\n   -- This is a very simple math flash card script.\n   put <b>random<\/b>(50) into intOne\n   put <b>random<\/b>(50) into intTwo\n   put item <b>random<\/b>(2) of \"+,-\" into theOperator\n   put intOne && theOperator && intTwo && \"=\" && \u00ac\n   (the value of (intOne && theOperator && intTwo)) into theAnswer\n   put 0 into theCount\n   ask \"What is\" && intOne && theOperator && intTwo\n   if it is empty then exit hyperMath\n   if it is last word of theAnswer then put \"That's right!\" & \u00ac\n   return before theAnswer\n   answer theAnswer\n end hyperMath\n ","debug":{"9":["the random of posInt"]}}