# Random out?

**URL:** <https://forum.kirupa.com/t/random-out/159966>\
**Category:** Uncategorized\
**Created:** [August 22, 2005, 11:33am UTC](https://forum.kirupa.com/t/random-out/159966 "2005-08-22T11:33:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdzines](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kdzines](https://forum.kirupa.com/u/kdzines)\
**Post date:** [August 22, 2005, 11:33am UTC](https://forum.kirupa.com/t/random-out/159966/1 "2005-08-22T11:33:47Z")

</div>

Hi,

does anyone know of a way to generate random numbers, but each time a new number is genereated, the previous one is struck off (so it can’t be called again).

i have a random text thing which matches words, but i don’t want to call the same combo twice and my Math.random does call the same number sometimes.

Once i have depleted the numbers, i want to reset and start again.

thanks in advance,

Kdz
