The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Looking for list randomizer (PC) software.

RoshinRoshin My backlog can be seen from spaceSwedenRegistered User regular
Right.

I'm looking for a specific type of software on the PC. I want a list randomizer that randomly picks a set number of entries from a list (or lists) that I create myself. Entries can be sentences, single words, or numbers. I want it to be off-line and I want the lists to be generous with how many entries I can add to them. Unlimited would be perfect, but unrealistic, I guess.

I thought a program like this would be fairly easy to find, but so far I haven't had any luck. There are some websites that offer services like this (random.org, etc), but I would prefer an off-line solution.

Any advice is appreciated.

steam_sig.png

Posts

  • FoomyFoomy Registered User regular
    I would just use a spreadsheet, easy enough to enter all the data you want and then for excel as an example you could use new cells with =INDIRECT(CONCATENATE(“A”, RANDBETWEEN(1, x))) were A is the column your data is in and X is the total number of cells you have filled in to pick from your list.

    Steam Profile: FoomyFooms
  • RoshinRoshin My backlog can be seen from space SwedenRegistered User regular
    I have little experience with spreadsheets, but tried this in LibreOffice Calc (don't have access to Excel) and it returned #REF!, which I see is an error of some kind. I apologize for being stupid about this.

    steam_sig.png
  • FoomyFoomy Registered User regular
    edited June 2016
    some quick googling says try this =INDIRECT("A"&RANDBETWEEN(1,COUNTA(A1:A7)))

    just change that A7 to be the last row of data you have entered or just use something like A10000 as it might only select filled in cells, not sure how libreoffice works on that.

    Foomy on
    Steam Profile: FoomyFooms
  • ArbitraryDescriptorArbitraryDescriptor Registered User regular
    edited June 2016
    Sounds like you're all set (or nearly so) with a spreadsheet, and that seems pretty optimal to me.

    But, if this is for some reason not ideal, a python script that takes a delimited list from a text file and spits out a random entry would be pretty simple.

    ArbitraryDescriptor on
  • mtsmts Dr. Robot King Registered User regular
    Actually you probably don't even need to highlight your rows. If you just put 'A' in as the target it will look at the whole column

    camo_sig.png
  • MichaelLCMichaelLC In what furnace was thy brain? ChicagoRegistered User regular
    Random.org

  • RoshinRoshin My backlog can be seen from space SwedenRegistered User regular
    MichaelLC wrote: »
    Random.org

    Yes, like I said in the OP, there are some websites that offer services like this (random.org, etc), but I would prefer an off-line solution.

    I could not get the above suggestions to work. I googled a bit and had a look around the LibreOffice forums and it seems like it should work, but for whatever reason doesn't. Obviously, I'm doing something wrong, but I'm not sure what.

    I ended up using a Google spreadsheet with a randomizer add-on. A bit clunky and certainly not off-line, but it sort of works.

    Thanks for the help and again, sorry for being dumb about this.

    steam_sig.png
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    If you want to try the programming route, it's a simple one-liner in Ruby and Python.
    puts File.readlines('some_file.txt').sample(3)
    

  • RoshinRoshin My backlog can be seen from space SwedenRegistered User regular
    Echo wrote: »
    If you want to try the programming route, it's a simple one-liner in Ruby and Python.
    puts File.readlines('some_file.txt').sample(3)
    

    Thanks, Echo.

    steam_sig.png
  • AiouaAioua Ora Occidens Ora OptimaRegistered User regular
    Roshin wrote: »
    Echo wrote: »
    If you want to try the programming route, it's a simple one-liner in Ruby and Python.
    puts File.readlines('some_file.txt').sample(3)
    

    Thanks, Echo.

    @roshin also in powershell, which should already be installed on any Windows machine.
    Get-Content "C:\somefile.txt" | Get-Random -Count 3
    

    life's a game that you're bound to lose / like using a hammer to pound in screws
    fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
    that's right we're on a fucked up cruise / God is dead but at least we have booze
    bad things happen, no one knows why / the sun burns out and everyone dies
  • RoshinRoshin My backlog can be seen from space SwedenRegistered User regular
    Aioua wrote: »
    Roshin wrote: »
    Echo wrote: »
    If you want to try the programming route, it's a simple one-liner in Ruby and Python.
    puts File.readlines('some_file.txt').sample(3)
    

    Thanks, Echo.

    @roshin also in powershell, which should already be installed on any Windows machine.
    Get-Content "C:\somefile.txt" | Get-Random -Count 3
    

    Thanks, Aioua. I will look into this. :)

    steam_sig.png
Sign In or Register to comment.