# Still need help putting things in random places

**URL:** <https://forum.kirupa.com/t/still-need-help-putting-things-in-random-places/154979>\
**Category:** Uncategorized\
**Created:** [July 14, 2005, 12:04am UTC](https://forum.kirupa.com/t/still-need-help-putting-things-in-random-places/154979 "2005-07-14T00:04:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyroki](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pyroki](https://forum.kirupa.com/u/pyroki)\
**Post date:** [July 14, 2005, 12:04am UTC](https://forum.kirupa.com/t/still-need-help-putting-things-in-random-places/154979/1 "2005-07-14T00:04:49Z")

</div>

k for a long time ive been tryin to make powerups and now i finally got it workin except when i assign the powerup’s x coordinate to the math.random function it goes all over the stage how do i get it to only randomize once so it just chooses a random x coordinate and stays at that one i also need to use this for choosin wut powerup to come down like if the random number is from 1-25 for this powerup ect. can sum1 help me?
