program that can randomize list?

Discussion in 'Black Hat SEO' started by treason, Dec 14, 2010.

  1. treason

    treason Junior Member

    Joined:
    Mar 4, 2009
    Messages:
    105
    Likes Received:
    138
    i know there's one for SB but i want a standable program that can shuffle/randomize a list on the go.

    any help would be great. thanks.
     
  2. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,046
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Code:
    <?php
    
    // Usage:
    // php -q /path/to/input_file.txt /path/to/output_file.txt
    
    $input_file  = $argv[1];
    $output_file = $argv[2];
    
    $lines = file($input_file);
    foreach($lines as $line) {
        $line = trim($line);
    }
    
    shuffle($lines);
    shuffle($lines);
    shuffle($lines);
    
    $lines = implode("\n", $lines);
    
    $fh = fopen("$output_file", 'w');
    fwrite($fh, "$lines\n");
    fclose($fh);
    
    ?>
    
     
  3. noermanto

    noermanto Regular Member

    Joined:
    Nov 18, 2009
    Messages:
    305
    Likes Received:
    288
    Occupation:
    None
    Location:
    # JKT #
    I personally use excell due nothing software I found.

    I usually just want to randomize a (long) list within a column, so I paste in excell and beside it (the next column) I create a formula that randomize a number by using random number generator then I sort the random number.

    The random number formula is
    Code:
    =RAND()
    
    
    
    Hope it would be useful, and excell do have limitation, so if you have long list, split it. Any better idea?