or you could just pull numbers out at random then throw them away:
use strict; use warnings; my @numbers = 1..10; print splice (@numbers, rand (@numbers), 1), "\n" while @numbers;
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |