Randomizing Numbers +letters menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Randomizing Numbers +letters

    Im working on making a WoW scam in vb, its a UDE code phisher, gamecard phisher and a cd key phisher all in one. I have a code that im using to generate numbers for the Game Card generator, i need to be able to add letters into it for cd keys and UDE Codes. The code that im working with is:
    Code:
                '64646
                Dim r As New Random()
                TextBox6.Text = r.Next(1, 9999)
                TextBox7.Text = r.Next(1, 999999)
                TextBox8.Text = r.Next(1, 99999)
                TextBox9.Text = r.Next(1, 999999)
                TextBox10.Text = r.Next(1, 9999)
    I want to be able to use that but include letters into it and make it all letters for the
    Code:
    TextBox9.Text = r.Next(1, 999999)
    Thanks for the help
    OMG LOL

    Randomizing Numbers +letters
  2. #2
    freakyflow's Avatar Contributor
    Reputation
    116
    Join Date
    Jan 2008
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This will do both upper and lowercase, eliminate that part if not needed. Just add strChar to you random number output.


    Code:
          Public Function CreateRandomLetter(ByVal pblnUpperCase As Boolean) As String
    
          Dim lngAsc  As Long
    
          Dim strChar As String
    
              Randomize
    
              lngAsc = vbKeyA + CLng(Rnd * (vbKeyZ - vbKeyA))
    
              If pblnUpperCase Then
    
                  strChar = LCase$(Chr$(lngAsc))
    
              Else
    
                  strChar = LCase$(Chr$(lngAsc))
    
              End If
    
              CreateRandomLetter = strChar
    
          End Function

    or you can just do something like this and get a random string out of it.

    Code:
    KeyLetters = "abcdefghijklmnopqrstuvwxyz"
    Last edited by freakyflow; 01-05-2009 at 05:14 PM.

  3. #3
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx if anyone else has some more codes id be happy to have them
    OMG LOL

  4. #4
    Murdok's Avatar Member
    Reputation
    34
    Join Date
    Oct 2007
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Private Function AtoZ() As String
    
    AtoZ = Chr(65 + Rnd() * 862150000 Mod 26)
    
    End Function
    This is what i use to make a random letter

    vb6

    There are 10 kinds of people in the world. Those who understand binary and those who don't.

  5. #5
    omg_lol's Avatar Member
    Reputation
    25
    Join Date
    Dec 2008
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx for the help, but id prefer just a twist of the code i listed, im using vb 2008 and am still quite a noob with coding...
    OMG LOL

  6. #6
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Code:
    '->VB 2008
    
    Function getrandombystring(ByVal Input As String, ByVal charamount As Integer) As String
        Dim r As New Random
        Dim strb As New System.Text.StringBuilder
        Dim chararray() As Char = Input.ToCharArray
        For i As Integer = 1 To charamount
            Dim ti As Integer = r.Next(0, chararray.Length)
            strb.Append(chararray(ti))
        Next
        Return strb.ToString
    End Function
    
    
    TextBox1.Text = (getrandombystring("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", 6))
    Last edited by maclone; 01-07-2009 at 10:47 AM.
    Zomfg. And no, don't ask. - Dombo did it.

  7. #7
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    using System;
    using System.Text;
    
    namespace ScamToolsSuiteLib
    {
        internal class KeyGenerator
        {
            private static readonly char[] Charset = "abcdefghijklmnopqrstuvwxyz0123456789".ToCharArray();
            private static readonly Random random = new Random();
    
            /// <summary>
            /// Gets a randomly generated time card code. Example: 3420-666698-16081-009008-6060
            /// </summary>
            /// <value>The get time card.</value>
            /// 10/27/2008 9:15 AM
            public static string GetTimeCard
            {
                get
                {
                    StringBuilder sb = new StringBuilder();
                    for (int j = 1; j <= 29; j++)
                    {
                        int next = random.Next(10);
                        if (j == 5 || j == 12 || j == 18 || j == 25)
                        {
                            sb.Append("-");
                            continue;
                        }
                        sb.Append(next.ToString());
                    }
                    return sb.ToString();
                }
            }
    
            /// <summary>
            /// Gets a randomy generated Trading Card Game code
            /// </summary>
            /// <value>The get TCG card.</value>
            /// 10/27/2008 9:15 AM
            public static string GetTCGCard
            {
                get
                {
                    StringBuilder sb = new StringBuilder();
                    for (int i = 0; i < 29; i++)
                    {
                        if (i == 4 || i == 12 || i == 18 || i == 24)
                        {
                            sb.Append("-");
                            continue;
                        }
                        sb.Append(Charset[random.Next(Charset.Length)]);
                    }
                    return sb.ToString().ToUpper();
                }
            }
    
            /// <summary>
            /// Gets a randomly generated CD key. Example: RMXI7O-83DY-ZU6INW-8FMB-72XSG4
            /// </summary>
            /// <value>The get CD key.</value>
            /// 10/27/2008 9:15 AM
            public static string GetCDKey
            {
                get
                {
                    StringBuilder sb = new StringBuilder();
                    for (int i = 1; i <= 30; i++)
                    {
                        if (i == 7 || i == 12 || i == 19 || i == 24)
                        {
                            sb.Append('-');
                            continue;
                        }
                        sb.Append(Charset[random.Next(Charset.Length)]);
                    }
                    return sb.ToString().ToUpper();
                }
            }
    
            /// <summary>
            /// Gets a randomly generated Blizzard authenticator code. (Length ranges from 6-8 digits only.)
            /// </summary>
            /// <value>The get authenticator.</value>
            /// 10/27/2008 9:15 AM
            public static string GetAuthenticator
            {
                get
                {
                    int rand = random.Next(6, 9);
                    StringBuilder sb = new StringBuilder();
                    for (int i = 0; i < rand; i++)
                    {
                        sb.Append(random.Next(10));
                    }
                    return sb.ToString();
                }
            }
        }
    }
    Run it through a translator, and you can access all of them easily. Enjoy.

Similar Threads

  1. [Request] Event: Random Word/Letter Game
    By interlanden in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 03-07-2011, 02:47 AM
  2. Is there a Lua random number function?
    By damdempsel in forum World of Warcraft General
    Replies: 4
    Last Post: 08-06-2010, 05:11 AM
  3. Random ID numbers for those who need them.
    By cheif tiger in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 02-06-2008, 06:31 PM
  4. How to Make a Character with Cool Letters
    By Cyboi in forum World of Warcraft Guides
    Replies: 62
    Last Post: 08-21-2007, 01:52 PM
All times are GMT -5. The time now is 10:46 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search