in reply to Perl script newbie need help !!!

Mark,

Welcome to our Monastery!

A golden rule to remember is that we help those best, who help themselves.

Showing what you tried yourself, even when it failed, is always considered a good sign and the Monks will rush to your aid. Just asking for some code, is frowned upon as we are no code writing or homework solving establishment.

So, show the Monks some of your code and we will speak again!

A hint: have a look at the rand function.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James