# Help with randomization of numbers

**URL:** <https://forum.kirupa.com/t/help-with-randomization-of-numbers/86439>\
**Category:** Uncategorized\
**Created:** [April 13, 2005, 12:52am UTC](https://forum.kirupa.com/t/help-with-randomization-of-numbers/86439 "2005-04-13T00:52:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricktheking](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@patricktheking](https://forum.kirupa.com/u/patricktheking)\
**Post date:** [April 13, 2005, 12:52am UTC](https://forum.kirupa.com/t/help-with-randomization-of-numbers/86439/1 "2005-04-13T00:52:18Z")

</div>

hey im having help with randomization…  
i have a number that i would like to randomize a number when im on a certain frame. The number i would like is between 10 and 50. i tryed adding this code to my main frame but im getting errors etc.

```auto
 function randomise () {
_root.number=random(<10,>50)
randomise(_root.number); }

```

so heres the code on the main frame… not sure what to change as i tryed doing this through the glossary
