in reply to random number generation problem
Change 5 to $minlength, 10 to ($maxlength-$minlength) if so desired.my(@vchars) =(a..z,A..Z,0..9); sub rwg { return join ('', map { $vchars[int(rand($#vchars+1))] } 5 .. 5+int(rand(10))); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: random number generation problem
by cghost23 (Novice) on Apr 27, 2001 at 01:39 UTC | |
by tadman (Prior) on Apr 27, 2001 at 01:49 UTC |