in reply to making random number

See the example in rand().

To get an 11-digit number starting with 912, I propose to generate a random 8-digit-number and put the 912 in front.

To get many numbers, you need a loop, e.g. a for-loop or a while-loop. (search for it in perlsyn)

HTH, Rata