shamuraq Posted May 4, 2009 Share Posted May 4, 2009 Hi Guys to randomise an int, we use (rand). How do i duplicate an image into random number of that single image based on (rand)? Meaning if the output from (rand) is 5, i need 5 of that image to be reflected. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 4, 2009 Share Posted May 4, 2009 $rand = rand(); for ($e = 0; $e < $rand; $e++) { echo '<img src="www.mydomain.com/image.gif" />'; } Quote Link to comment Share on other sites More sharing options...
shamuraq Posted May 6, 2009 Author Share Posted May 6, 2009 Thanx Ken27k... really appreaciate it... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.