# Random numbers

**URL:** <https://forum.kirupa.com/t/random-numbers/327345>\
**Category:** Uncategorized\
**Created:** [February 23, 2012, 8:04am UTC](https://forum.kirupa.com/t/random-numbers/327345 "2012-02-23T08:04:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fonzio](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@fonzio](https://forum.kirupa.com/u/fonzio)\
**Post date:** [February 23, 2012, 8:04am UTC](https://forum.kirupa.com/t/random-numbers/327345/1 "2012-02-23T08:04:32Z")

</div>

hi  
wondering if anybody could help me with the following  
i have a textbox called high\_txt.text another called symbol\_txt.text and another called low\_txt.text and finally one more called answer\_txt.text  
the first three are dynamic, and the last is input  
can anybody help me make a random number between 1 and 100 for the high\_txt.text  
and another between 1 and 50 for the low?  
then i need to have a random of either + or - for the symbol\_txt  
what im basically trying to do is form a maths game for kids,  
the reason i need a high and low is so that the answer doesnt come out as -4 or something like that  
so i can say somethings like  
if high\_txt.text + or - low\_txt.text and is == the answer\_txt.text  
display correct  
wondering how i would go about this?  
thanks  
fonzio
