Results 1 to 4 of 4

Thread: (Resolved)..Randomly picking Numbers and Alphabets ....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    137

    (Resolved)..Randomly picking Numbers and Alphabets ....

    Hello,

    I need help on Randomly picking Numbers and alphabets. Please help..........

    Thanxs.

    _______________________________________________

    vbBoy.
    Last edited by vbBoy; Nov 27th, 2001 at 01:57 PM.

  2. #2
    jim mcnamara
    Guest
    Code:
    Function rndAlphaNum() as string
           Dim tmp as string
           tmp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
           rndAlphaNum = mid(tmp, rnd*36 + 1, 1) 
    End function

  3. #3
    Matthew Gates
    Guest
    Here's another way:


    VB Code:
    1. Private Function ChooseRandom() As String
    2.     Randomize Timer
    3.     ChooseRandom = Chr(Int((Rnd * 90) + 33))
    4. End Function
    5.  
    6. Private Sub Command1_Click()
    7.     MsgBox ChooseRandom
    8. End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    137

    Reply to jim mcnamara and Matthew Gates

    I thank you.

    They examples really helped me.

    ____________________________________________

    vbBoy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width