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
    arrow-up
    3
    ·
    3 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)