I work under linux kernel 2.6.20-1.2320.fc5
I wrote an awk script (named prim_fail) for generating a sequence of draws from a binomial distribution:
Code:
BEGIN {
srand()
}
{ for(i=1;i<=100;i++)
{ if (rand()<0.2)
print $1=1
else
print $1=0
}