Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Random Images X 4 [solved]
Anyone have any sample scripts?
The main problem stumping me is that the random pics need to be selected randomly at the same time to avoid duplicates.
Posted: Thursday, 10 May 2007 at 8:28PM
0
This discussion has been closed.
Comments
Posted: Thursday, 10 May 2007 at 8:40PM
for ($i = 1; $i <= 4; $i++) {
$newimage = SELECT RANDOM IMAGE;
while (in_array($newimage,$image)) {
$newimage = SELECT ANOTHER RANDOM IMAGE - IT's ALREADY BEEN USED
}
$image[$i] = $newimage
}
That's quickly thrown together in the middle of a busy workday and untested but you should get the jist..?
Posted: Sunday, 13 May 2007 at 8:43PM