/********************************************************
De-select a precentage of the selected Items
Brian Samuels
********************************************************/
global proc selPercent(int $percent)
{
string $selected[] = `ls -sl -fl`;
string $sel;
int $rnd;
for($sel in $selected)
{
$rnd = `rand 0 100`;
if($rnd> $percent)
{
select -d $sel;
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter