# Better randomization

**URL:** <https://forum.kirupa.com/t/better-randomization/204444>\
**Category:** Uncategorized\
**Created:** [October 19, 2006, 8:19pm UTC](https://forum.kirupa.com/t/better-randomization/204444 "2006-10-19T20:19:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samclems](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@samclems](https://forum.kirupa.com/u/samclems)\
**Post date:** [October 19, 2006, 8:19pm UTC](https://forum.kirupa.com/t/better-randomization/204444/1 "2006-10-19T20:19:20Z")

</div>

hello everyone.

i’m sam and this is my first post.  
i really like the code for loading a random image using .php

[http://www.kirupa.com/web/random\_image.php](http://www.kirupa.com/web/random_image.php)

but i’d love to add something to it which excludes the possibility of the same number occuring twice before all numbers have been generated. does that complicate things immensely?

thank you in advance.

sam.
