1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I'm looking for tool that generate random strings

Discussion in 'Black Hat SEO Tools' started by justdude, Jan 4, 2009.

  1. justdude

    justdude Jr. VIP Jr. VIP

    Joined:
    Dec 17, 2008
    Messages:
    220
    Likes Received:
    72
    well I can't explain name of this tool but I need, program, js, php or something that generate random letter, numbers. All coma seperated something like this:

    weioufhhweiof, WOIFHWOIEFH1232, edfbeirf, IUU3HR934943, w9hfwe9iufbiwef, ieowferi, efidbcdsaoc, 9348y5349hrfedij, iewfbe

    each day I need three strings like this above to copy and paste to text file. I'm affraid that my keyboard doesn't survive long ...
     
  2. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    PHP:
    <?
    function 
    code($limit)
        {
            return 
    substr(md5(date("d.m.Y.H.i.s").rand(1,1000000000000000)) , $limit);
        }
    $limit=rand(5,40);
    echo 
    code($limit);
    ?>
     
    • Thanks Thanks x 1
  3. justone

    justone Elite Member

    Joined:
    Oct 12, 2008
    Messages:
    1,519
    Likes Received:
    1,037
    Occupation:
    -
    Location:
    Europe
    That method works but it will only include the characters
    0 1 2 3 4 5 6 7 8 9 a b c d e f

    I changed it so it contains characters from a user defined set

    Code:
    <?
      $charset="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
      $clen=strlen($charset)-1;
    function code($len)
    {
     global $charset;
     global $clen;
     for ($str="",$n=0;$n<$len;$n++,$str.=substr($charset,mt_rand(0,$clen),1));
     return $str;
    }
    
    for ($n=0;$n<10;$n++)
    {
     $limit=mt_rand(10,20);
     echo code($limit);
     echo "\n";
    }
    ?>
    
    
    replace the \n with <br> if you run it on a website
    and replace 10,20 with the length (minimum maximum) of the strings

    example output:
    TyAP0iz6AuH
    O47HuAqU1v3O
    2g5cdouq5M2MWav4e
    a5MZJoPXHLDoBI
    xkKzqbRKzgOFfdPRPIS2
    QCxa8C5Lm5CikDtdZ
    XyntPT9KtdovYET
    uFX3AWDQnMEaW1Kx
    Z9qs6O6r146K5ayw
    KeCwq4yDJ3g1Gqd
     
    • Thanks Thanks x 1
  4. WizGizmo

    WizGizmo Super Moderator Staff Member Moderator Jr. VIP Premium Member

    Joined:
    Mar 28, 2008
    Messages:
    4,046
    Likes Received:
    55,712
    The WizGizmo Random String Creation Tool!​

    [​IMG]

    ENJOY!​
     
    • Thanks Thanks x 1
  5. emdubl

    emdubl Newbie

    Joined:
    Dec 22, 2008
    Messages:
    36
    Likes Received:
    3
    google for "random string generator"

    there are several websites that will do the trick. if that is what you are after..