#!/usr/bin/perl -l $N=pop;print 1/$N*grep{my@a;$a[rand 10]++for 1..$ARGV[0];9