# Need help choosing random numbers

**URL:** <https://forum.kirupa.com/t/need-help-choosing-random-numbers/157975>\
**Category:** Uncategorized\
**Created:** [August 5, 2005, 3:38pm UTC](https://forum.kirupa.com/t/need-help-choosing-random-numbers/157975 "2005-08-05T15:38:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [August 5, 2005, 3:38pm UTC](https://forum.kirupa.com/t/need-help-choosing-random-numbers/157975/1 "2005-08-05T15:38:52Z")

</div>

I need a bit of help choosing random numbers.  
I want to be able to choose any number from 1 to 10.  
Let’s say for example, 4 is chosen.  
I then want to be able to choose any number from 1 to 10, aprart from 4.  
Let’s say 6 is chosen.  
I then want to be able to choose any number from 1 to 10, apart from 4 and 6.  
And etc, until all of the numbers are chosen.

I was hoping someone could recommend the best way to code the above.

Thanks.

OM
