[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On my unix (Solaris 2.5.1, 2.7, 2.8)/linux boxes perl 5.005
'works', 5.6 and above doesn't (various DOS's 4.0.1.8 on work
(4.0.1.6 doesn't) - except for one old Suse linux on 5.005 which
doesn't) - it must be some oddness w/ rand.
It depends on the
Let me apologize is advance if this is
wrong list or has already been addressed etc.
rand seems to produce an abnormally high
number of zeros, like 20 or 30 per million
active perl binary v5.8.0 Build 804
$t = 0;
for($k=0;$k100;$k++) {
$t = rand(1);
if ($t == 0.0)
From: Jarrett Malone [EMAIL PROTECTED]
Let me apologize is advance if this is
wrong list or has already been addressed etc.
rand seems to produce an abnormally high
number of zeros, like 20 or 30 per million
active perl binary v5.8.0 Build 804
$t = 0;
for($k=0;$k100;$k++) {
Title: RE: Terrible at my logic
Hi
friends,
I want to generate some 1000 or more passwords for some NT
machine.
I
should be able to generate an 8 digit alphanumeric random numbers from the list
of characters.
Say I
have 3 strings...
First
string : 0 - 9 numbers
Second
string : A - Z
, October 29, 2002
12:48 PM
To: 'FARRINGTON, RYAN';
[EMAIL PROTECTED]
Subject: Random numbers
Hi friends,
I want to generate some 1000 or more passwords
for some NT machine.
I should be able to
generate an 8 digit alphanumeric random numbers from the list of characters.
Say I have 3 strings
Title: RE: Terrible at my logic
perldoc -f rand
here's an example:
printint rand ;
-Original Message-From: Krishna, Hari
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 29, 2002
12:48To: 'FARRINGTON, RYAN';
[EMAIL PROTECTED]Subject: Random
numbers
Hi
\n;
}
-Original
Message-
From: Patrick Connolly
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 29, 2002
1:00 PM
To: 'Krishna, Hari'; 'FARRINGTON,
RYAN'; '[EMAIL PROTECTED]'
Subject: RE: Random numbers
@a = (0..9,A..Z,a..z);
for($I=0;$I1000;$I++) {
for($x=0;$x8;$x++) {
$index
Title: RE: Terrible at my logic
OH MY
GOD!!!
That
is soo overwhelming
I
don't have enough thatyou 's to say THANKYOU ALL SO VERY
MUCH
your
humble servant,
Hari.
PROTECTED]
Subject: RE: Random numbers
To make it
even a little more fun you could also vary the length of the password:
@a =
(0..9,A..Z,a..z); # password charactors
@b =
(6..14); # length of password
for($I=0;$I1000;$I++)
{
for($x=0;$x$b[rand @b];$x++) {
print
$a[rand @a];
}
print
,
Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;;
y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
-Original Message-From: Krishna, Hari
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 29, 2002 12:48
PMTo: 'FARRINGTON, RYAN';
[EMAIL PROTECTED]Subject: Random
numbers
Hi
friends,
I
...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:perl-win32-users-admin;listserv.ActiveState.com]On Behalf Of
Krishna, Hari
Sent: Tuesday, October 29, 2002 7:48 PM
To: 'FARRINGTON, RYAN'; [EMAIL PROTECTED]
Subject: Random numbers
Hi friends,
I want to generate some 1000 or more
I have seen a few ok random number generator snippets but none really look
like they work too well. Take the two below arrays.
@array qw(1 2 3 4 5 6 7 8 9);
@array2 qw(01 02 03 04 99 88);
I want to be able to get either single numbers or double numbers and limit
how many to generate.
I can't
- Original Message -
From: steve silvers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 3:51 AM
Subject: Generating random numbers?
I have seen a few ok random number generator snippets but none really look
like they work too well. Take the two below arrays
I have seen a few ok random number generator snippets but none really look
like they work too well. Take the two below arrays.
http://search.cpan.org/search?mode=modulequery=random
Some modules that may be of interest:
Math::Random
Math::TrulyRandom
14 matches
Mail list logo