# AS2.0 Random number

**URL:** <https://forum.kirupa.com/t/as2-0-random-number/256809>\
**Category:** flash\
**Created:** [April 7, 2008, 3:37pm UTC](https://forum.kirupa.com/t/as2-0-random-number/256809 "2008-04-07T15:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [April 7, 2008, 3:37pm UTC](https://forum.kirupa.com/t/as2-0-random-number/256809/1 "2008-04-07T15:37:45Z")

</div>

Hi there!

does anyone have an idea of how to remove the 0, when using random() ?  
i thought in an easy way to skip 0 (if its 0- becomes another number), but with that i’m compromising the random probabilities…

any ideas?

thanks in advance!
