Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 02:12:05 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Random Name Selection  (Read 3526 times)

kc0nvi

  • Freeware Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 22
    • View Profile
    • Donate to Member
IDEA: Random Name Selection
« on: August 19, 2006, 02:43:20 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
    • View Profile
    • Donate to Member
Re: IDEA: Random Name Selection
« Reply #1 on: August 20, 2006, 03:15:36 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 21, 2006, 08:04:09 PM by wr975 »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
Re: IDEA: Random Name Selection
« Reply #2 on: August 21, 2006, 06:45:29 PM »
Can you post your names file so I can test it out? I am gonna try this one too

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: IDEA: Random Name Selection
« Reply #3 on: August 21, 2006, 07:57:49 PM »
Here's a file I made for testing....

Please download the script again.... fixed a serious bug.  :-[
« Last Edit: August 21, 2006, 08:02:59 PM by wr975 »

kc0nvi

  • Freeware Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 22
    • View Profile
    • Donate to Member
Re: IDEA: Random Name Selection
« Reply #4 on: August 24, 2006, 02:38:31 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
    • View Profile
    • Donate to Member
Re: IDEA: Random Name Selection
« Reply #5 on: August 24, 2006, 10:15:30 AM »
You're welcome. Thanks for the feedback!  :Thmbsup: