Help for this page

Select Code to Download


  1. or download this
    @nums = '0' .. '30'; # change to '000000' .. '999999';
    srand;
    while(@nums){
        push(@randnums, splice @nums,int(rand @nums),1);
    }
    
  2. or download this
    # Test print:
    print join(' ',@randnums);
    print "\n";
    print join(' ',sort {$a <=> $b} @randnums);