He is creating a throttle or valve with the grep function, allowing only a certain stochastic percentage of @input applicants through the valve into the accepted @subset.
I know. merlyn's Original post had my @subset = rand(75) <= 100, @input;, which wasn't using grep at all. Apparently he's updated the node.
I don't include citations for you to ignore them; they're there to read :)
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Re: Re: •Re: Selecting random records from an array
by Juerd
in thread Selecting random records from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |