|
-
Aug 29th, 2000, 09:36 AM
#1
Thread Starter
Fanatic Member
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!
-
Aug 29th, 2000, 10:22 AM
#2
Addicted Member
for the randomizing the last 3 try this
randomize
x = int(rnd * 999)
y = "xxx" & str(x)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|