DonationCoder.com Software > Post New Requests Here
IDEA: Random Name Selection
kc0nvi:
Hi All,
Not sure if this has been asked and answered or not, so I'll drop it out there.
I have a list of names that I need to pull randomly from.
EZ so far,BUT...
From the list, I need to select the names, based on a number provided, so for instance from the full list I need 11 randomly picked names, then I need those names to not be part of the original list for selection again, so it basically shortens the list to those remaining.
Then would allow the names that were selected (say from a textfile) tobe saved to a file, maybe a textfile or a CSV file, something it could be pulled into another program if wanted.
Then, allow for the same number of selections again, from the remaining names, or allow for a new number to be input to select from the list remaining.
I hope that all makes sense?
Thanks in advance...
Randy
wr975:
Hi, I've given it a try. I hope it's what you want.
The source file needs to be a text file.
PS: The script generates a ...temp file. Don't erase it. It's needed to "remember" the randomly picked lines between sessions.
Josh:
Can you post your names file so I can test it out? I am gonna try this one too
wr975:
Here's a file I made for testing....
Please download the script again.... fixed a serious bug. :-[
kc0nvi:
:Thmbsup:
wr975, this works PERFECT!!!
I need to learn this AutoHotKey, it appears to be just what the doctor ordered!
My sincerest thanks.
Randy
Navigation
[0] Message Index
[#] Next page
Go to full version