VB random number generator menu

User Tag List

Results 1 to 4 of 4
  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)

    VB random number generator

    VB random number generator
    Hey guys, i would like to make a GC-Gen in VB, but there remains one problem, how do i make it so when the person types in their gc code and clicks generate, how do i make it generate a random code? Also i want it to follow the same format as a real game card. Thanks for your help in advanced!!

    EDIT: Didnt knew it belong in programming, whoops :P
    Last edited by omg_lol; 12-16-2008 at 06:09 PM.
    OMG LOL

    VB random number generator
  2. #2
    TuFF's Avatar Contributor
    Reputation
    120
    Join Date
    Aug 2007
    Posts
    352
    Thanks G/R
    6/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wrong Section (Belongs in Programming Section)

  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)
    k, if no1 can help me, tell me if this idea would work, they type in gc code, type in email, and they click generate and a message box pops up saying "you will recieve your gc via email in 10-12 hours. Please do not use your gamecard that you already have while your waiting for your email. Thank you!" Any good?
    OMG LOL

  4. #4
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I'm writing this on the top of my head and theres a way better way to handle this but try

    Code:
    '4-6-5-6-4
    Dim r as new Random()
    txt_1.Text = r.next(1, 9999)
    txt_2.Text = r.next(1, 999999) 
    txt_3.Text = r.next(1, 99999)
    txt_4.Text = r.next(1, 999999)
    txt_5.Text = r.next(1, 9999)
    The values might need converted over to a string, didn't look at the function.

Similar Threads

  1. Password and random string generator
    By someone32 in forum Community Chat
    Replies: 1
    Last Post: 05-03-2009, 12:41 PM
  2. Randomizing Numbers +letters
    By omg_lol in forum Programming
    Replies: 6
    Last Post: 01-07-2009, 11:34 AM
  3. Random Password Generator!
    By -=Demon=- in forum World of Warcraft Bots and Programs
    Replies: 45
    Last Post: 06-07-2008, 12:30 AM
  4. AH random item generator
    By Noobcraft in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-17-2007, 07:52 PM
  5. Random Weapon Generator?
    By Meutofness in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-21-2007, 02:34 AM
All times are GMT -5. The time now is 08:50 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.
Digital Point modules: Sphinx-based search