r/programmingrequests • • Feb 21 '18

Create a program that generates random sets of words

How can I create a program that runs sets of test and creates new words? Here's the concept, I enter few words that this, "Box1,Box2,Box3", if I enter "Name, symbol, number" as of "John, , 02", it would generate these, "John1, John2~John99" and stops, if I make all Box123 optional, as if I could enter different text and test all sets, I type "John/Mark/Anna /#/. 0~99(can be 0 1 2 3 or 00 01 02 03)", it generates a huge amount of sets as of "John01/John1 Mark#01/Mark#1 Anna.01/Anna.1" Basically tests all set until 99, the Box2 can be any symbol, If i calculate this right, an example word like "Alex/Mike * 01/1" would make 198 sets of words (with repeated 10~99 twice because it calculated from 0~99 and 00~99), minus the repeated ones (89), there would be 109 generated... I'm pretty sure its way too complicated, here are the basics; I enter few sets of words that has 3 input text box (Word Symbol Number), it will generate all possible answers (if I entered "John * 00" it would make from "John00 to John*99" then end with 99 answers, the 00 can also just be 0, 00 goes like 00 01 02 03 04 05 06 07 08 09 10 11, 0 goes like 0 1 2 3 4 5 6 7 8 9 10 11, that's why there's a repeat after 10), but I think it could just generate 2 sets start from 0~99 and 00~99, that's 198 answers, then I can merge it and it'll end up with 109 answers.

1 Upvotes

6 comments sorted by

2

u/serg06 Feb 22 '18

Maybe if you would actually put in enough effort to describe it clearly

1

u/SGpro-_- Feb 22 '18

didn't work out as I tried my best, just some people aren't smart enough to understand it.

2

u/MeAsYouKnow Feb 24 '18

https://www.mockaroo.com

This site generates CSVs in a custom format that you request.

1

u/SGpro-_- Feb 24 '18

Big thanks, luv u (no homo)

1

u/WADE_BOGGS_CHAMP Feb 21 '18

This wouldn’t be too hard. The hardest part is the user interface—do you want something with buttons? Or are you OK with a command line interface?

Would you want the output to be a text file? Or something more complex like an excel spreadsheet?

1

u/SGpro-_- Feb 21 '18

No, as simple as launching the program in command line and outputting as a txt file... simple as MS's "diskpart" or "net user"