Notice that all i did was replace the hard coded values with the arrays, which will be correctly used by rand.print "gimme a seed: "; $s = <STDIN>; srand ($s ^ time); @chars = qw(b c d f g h j k l m n p r s t v w x z); @vowels = qw(a e i o u y); for($i = 1; $i <= 4; $i++) { print $chars[int(rand(@chars))], $vowels[int(rand(@vowels))]; }
In reply to Re: random passgen
by Aighearach
in thread random passgen
by ashaman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |