# Random damage

**URL:** <https://forum.kirupa.com/t/random-damage/148649>\
**Category:** Uncategorized\
**Created:** [May 22, 2005, 12:38am UTC](https://forum.kirupa.com/t/random-damage/148649 "2005-05-22T00:38:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colombianking](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@colombianking](https://forum.kirupa.com/u/colombianking)\
**Post date:** [May 22, 2005, 12:38am UTC](https://forum.kirupa.com/t/random-damage/148649/1 "2005-05-22T00:38:59Z")

</div>

im making an rpg kind of game  
and i have this code so that it does random damage from 0-20  
but i want it to do 10-20  
anyone know anything that can help

code  
on (release) {  
\_root.attack = \_root.attack=random(20);  
}
