Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
$files=array();
$files=explode(',',$pval);
$i=count($files)-1;
mt_srand((double)microtime()*1000000000000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
return $filesї$rand];
i wnat help for how to get sequentilay.
plz help me.
//$files=array();
$files=explode(',',$pval);
//$i=count($files)-1;
mt_srand((double)microtime()*1000000000000000); // seed for PHP < 4.2
//$rand = mt_rand(0, $i); // $i was incremented as we went along
//return $files[$rand];
return $files[array_rand($files)];
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
hai friends,
i saw your code.
I am calling my random programm in another programm.Presently each time calling that programm i will return randomly a .swf file.
you said use sort.But how the random program preserve last time return .swf file.
Plz tell me.