simple random filter
Merge pull request #6917 from bcoca/random_filter_clean

simple random filter