Results 1 to 5 of 5

Thread: how to generate a random number??[resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Dallas, TX
    Posts
    70

    Question how to generate a random number??[resolved]

    Lets say I want a number between 1 & 10.
    I tried this code, but it's not working...

    VB Code:
    1. Private Sub cmdGenerate_Click(Level As Byte)
    2.    MsgBox i((10 - 1 + 1) * Rnd + 1)
    3. End Sub
    Last edited by notSOMLS1; Apr 3rd, 2003 at 01:01 PM.

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