techPowerUp! Forums

techPowerUp! Forums (http://www.techpowerup.com/forums/index.php)
-   General Software (http://www.techpowerup.com/forums/forumdisplay.php?f=15)
-   -   Pick Random Line (http://www.techpowerup.com/forums/showthread.php?t=164848)

FordGT90Concept Apr 25, 2012 06:22 PM

Pick Random Line
 
1 Attachment(s)
Takes input either from a file (drag and drop on the executable supported) or from typing with one "item" per line. Click on "Pick One" and it will select a random line and place it in the result textbox where it can be copied/manipulated. This is great for having a computer make up your mind when you can't.

Requires .NET Framework 4.0 (Client Profile).

http://img.techpowerup.org/120809/pi...line_1_1_0.png

Weighted Lines


Version history:
-1.2.0: Fixed bug where last line wouldn't be picked if not using weights. Added drag and drop for files on the file name box and text on the main text box.
-1.1.0: Added the ability to weight lines. See the above "spoiler" for details.
-1.0.0: First release.

FordGT90Concept Aug 9, 2012 09:20 PM

Uploaded 1.1.0. It nows supports weighting lines. Details of how to use that feature are in the "Weighted Lines" spoiler. If you don't use that feature, it is functionally identical to 1.0.0.

TheMailMan78 Aug 9, 2012 09:45 PM

Just get married. You will never have to make up your mind again. She will do it for you and you don't even need to install .NET Framework 4.0

manofthem Aug 9, 2012 09:51 PM

So Ford this would be good for picking a winner for the next game giveaway? I'm all for it if so!

FordGT90Concept Aug 9, 2012 09:58 PM

Yeah, that's what it was originally created for. The weighting was added to make it easier to decide what game to play (lower weights for games we've already beat/started).

manofthem Aug 9, 2012 10:00 PM

Very cool, I'll try it out this weekend! Thanks

manofthem Aug 22, 2012 06:08 PM

Hey Ford, beer me a minute of your time (haha, Office reference). Can you look to see if you get the same thing that i'm getting... If i input say 10 numbers/names, it seems to never choose the last one. I tried with 4, 10, and 11 entries. These are just normal, nonweighted entries. Maybe it's user error, but i'd appreciate the insight.

FordGT90Concept Aug 22, 2012 06:29 PM

You're right. I'm sure I checked for that but must have some how broke it. I'll see about fixing it.

Also, I wanted to add drag n drop support so I might as well do that too while I'm at it.

manofthem Aug 22, 2012 06:35 PM

Quote:

Originally Posted by FordGT90Concept (Post 2703788)
You're right. I'm sure I checked for that but must have some how broke it. I'll see about fixing it.

Also, I wanted to add drag n drop support so I might as well do that too while I'm at it.

That would be terrific. I tried to drag and drop something earlier, just not thinking, but that would be pretty awesome.

With the other issue, the temporary workaround is to just add another line, anything I suppose, and it'll suite me just fine. Thanks for looking into, and thanks for the great utility, really good for giveaways lol!
:toast:

Jizzler Aug 22, 2012 06:58 PM

1 Attachment(s)
Bug confirmed.

http://www.techpowerup.com/forums/at...1&d=1345661849

It just won't pick that last line ;)

qubit Aug 22, 2012 07:01 PM

Typical little utility to write for when you have too much time on your hands. I like it. :)

@mailman: it sounds like you need to move on to Wife 2.0. ;)

manofthem Aug 22, 2012 07:05 PM

Quote:

Originally Posted by Jizzler (Post 2703811)
Bug confirmed.

http://www.techpowerup.com/forums/at...1&d=1345661849

It just won't pick that last line ;)

Maybe it knows better :laugh: jk

FordGT90Concept Aug 22, 2012 08:00 PM

1.2 uploaded which fixes that bug and adds drag and drop support.

Edit: Also fixed the bug where it would show an empty line in the result box.



Quote:

Originally Posted by Jizzler (Post 2703811)
Bug confirmed.

http://www.techpowerup.com/forums/at...1&d=1345661849

It just won't pick that last line ;)

http://nooooooooooooooo.com/vader.jpg

manofthem Aug 22, 2012 08:19 PM

Quote:

Originally Posted by FordGT90Concept (Post 2703842)
1.2 uploaded which fixes that bug and adds drag and drop support.

Edit: Also fixed the bug where it would show an empty line in the result box.




http://nooooooooooooooo.com/vader.jpg

Thank you kind sir, that was quick!


All times are GMT. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.