Results 1 to 2 of 2

Thread: A simple question!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Talking

    I'm making a program that takes a file that has about 1000 lines filled with letter combinations and inputs one of those lines into a TextBox. I want it to choose a random combination every time. For example:

    The list File:

    xxx123
    xxx666
    xxx999
    xxx321
    xxx699

    The first time I want it to choose a random combination like xxx666, then choose a different one like xxx699 after that and then a different one like xxx321.

    Could some1 write me the code!

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217
    for the randomizing the last 3 try this

    randomize
    x = int(rnd * 999)
    y = "xxx" & str(x)
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

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