in reply to How to not print the same random number
This may give you what you want:
use strict; use warnings; print join"\n",grep$_,map{our%s;my$n=1+int rand(10);$s{$n}++?0:$n}1..1 +00;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to not print the same random number
by ysth (Canon) on Mar 05, 2006 at 07:56 UTC | |
by GrandFather (Saint) on Mar 05, 2006 at 09:41 UTC |