Display Random Files
Display Random Files
I would like to click a button or catalog item to display a certain amount of random files (5,10, or 20) in the current directory. Each time its clicked it shows a new random set of files. Is this possible to do?
Re: Display Random Files
Code: Select all
filter;
$allFiles = listpane(, , 1+4);
$amount = gettoken("5|10|20", rand(1, 3), "|");
$files = gettoken(formatlist($allFiles, "x"), $amount, "|", , 1);
filter "$files", 1+4;
One of my scripts helped you out? Please donate via Paypal