DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Random Name Selection  (Read 8,178 times)

kc0nvi

  • Freeware Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 22
IDEA: Random Name Selection
« on: August 19, 2006, 07:43 PM »
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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: IDEA: Random Name Selection
« Reply #1 on: August 20, 2006, 08:15 AM »
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.
« Last Edit: August 22, 2006, 01:04 AM by wr975 »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: IDEA: Random Name Selection
« Reply #2 on: August 21, 2006, 11:45 PM »
Can you post your names file so I can test it out? I am gonna try this one too
Strength in Knowledge

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: IDEA: Random Name Selection
« Reply #3 on: August 22, 2006, 12:57 AM »
Here's a file I made for testing....

Please download the script again.... fixed a serious bug.  :-[
« Last Edit: August 22, 2006, 01:02 AM by wr975 »

kc0nvi

  • Freeware Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 22
Re: IDEA: Random Name Selection
« Reply #4 on: August 24, 2006, 07:38 AM »
:Thmbsup:
wr975, this works PERFECT!!!
I need to learn this AutoHotKey, it appears to be just what the doctor ordered!

My sincerest thanks.

Randy

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: IDEA: Random Name Selection
« Reply #5 on: August 24, 2006, 03:15 PM »
You're welcome. Thanks for the feedback!  :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=4887.0