I create this in php for generate random numbers
> <?php
>
> $products=array("1","2","3","4","5","6","7","8","9","10");
>
> for ($i=0;$i<count($products);$i++) {
>
> $numbers=rand(0,count(products));
>
> print "".$products[$numbers]."<br>";
>
> } ?>
I try generate in bucle different numbers but always show me the same numbers 1212121212 and nothing more , how i can generate this string or array and for example finally show 2 3 4 1 5 6 7 9 8 10 , and if reload script other combination
Thank´s Regards !!!
count(products)shouldn't it becount($products)?shufflethe array.