for ($i=0;$i<1000;$i++) { my $nr1= 10 + int(rand(0x150)); my $nr2 = 10 + 1 after 100 loops } So i have this script above in a loop of 1000, is it possible to add 1 after every 100 loops for my $nr2 ??? $nr1 adds every count plus 1. All help appreciated Regards, Dennis
if (i % 100 == 0) { $nr += 1; }
$nr2++ unless $i%100;
my
my $nr1
my $nr2
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)