in reply to making random number

It is not more difficult than this:
use Modern::Perl qw/2014/; say 91200000000 + int(rand(100000000)) for 1..1000;

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: making random number
by Anonymous Monk on Aug 25, 2014 at 08:00 UTC

    thank you for your suggestion. but how can i print the result in a text file.please help me.

      use Modern::Perl qw/2014/; open my $OUT, '>', './random.txt' or die "Could not open the output fi +le: $!"; say $OUT 91200000000 + int( rand(100000000) ) for 1 .. 1000;
      Now check the documentation for open, print and say. If there is anything you do not understand, come back here and ask.

      These are really basic functions you will need time and time again, so it is important you understand them completely.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics