I usually go to reddit and copy the first username that I see. Is there a quicker way to get a username like noun_adjective_number?

  • @Reaton@lemmy.ml
    link
    fedilink
    12 years ago

    I made a python script (Yup I’m bored lol)
    https://codeberg.org/UncleReaton/RUNG

    #!/usr/bin/python3
    import random
    
    with open("adjectives.txt", "r") as f_adj:
        adj = f_adj.readlines()
    
    with open("nouns.txt", "r") as f_nouns:
        nouns = f_nouns.readlines()
        
    rand_noun = nouns[random.randint(1, len(nouns))].strip()
    rand_adj = adj[random.randint(1, len(adj))].strip()
    rand_number = str(random.randint(0, 100))
    print(rand_noun + "_" + rand_adj + "_" + rand_number)
    
    • Ephera
      link
      fedilink
      02 years ago

      I wrote code for that before, for generating file names in a utility application, and I don’t know about you, but it surprised me how easy that was / how perfectly fine the results were.

      I always thought the big webpages with such name generators had sophisticated algorithms to make the adjectives reasonably sensible with the nouns and then huge word lists to ensure randomness and such.

      And then I did it with like 20 animal names and 30 adjectives, and all I ended up fine-tuning was to swap out a few of the words for more interesting ones (e.g. dog -> chihuahua, good -> fabulous).