How would I generate all numbers from a series (say 1-1000) in random order one at a time, in a for loop I would imagine?
Thanks!
for($i=0; $i<1000; $i++) echo rand(0, 1000);
thanks, but i should have elaborated more. i want to have every single number from 1 to 1000. 1000 numbers from 1 to 1000 never to repeat and in random order.
hope this makes sense
thanks again
ideas anyone?
Make an array with 1000 numbers, and use shuffle() http://us3.php.net/shuffle
Assuming, of course, you meant every single INTEGER, and not every single NUMBER, because theres an infiniate number of numbers between 1 and 1000...
thanks, that'll work.