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;
In reply to Re: How to not print the same random number
by GrandFather
in thread How to not print the same random number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |