> I didn't quite see why you would have to do a +1 on the following: > > my $RandomScript = $Scripts[int(rand($#Scripts + 1))];
The '$#array' construct returns the index of the last element of the '@array'. 'rand $number' returns a random number between 0 (inclusive) and $number (exclusive). the 'int' function throws away the fractional part. If you don't add 1, you would never get the last array-element. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]