Answer the question
In order to leave comments, you need to log in
How to select a random word from a list? Random?
There are several "genres", the Middle Ages and the new era (for example). You press the first button and inside you start a random choice of a word, the name of a medieval weapon is randomly selected there. Or we go into a new era and there are the names AK-47, etc.
How to separate these "genres" and implement this system more correctly? For example, there are 1000 words and manually throwing them into an array is not a particularly interesting undertaking.
Is it possible somehow to copy the list of necessary words into a separate .txt document and automatically take them into an array from there, so that I can use them later?
Answer the question
In order to leave comments, you need to log in
Random pick, yes.
And so that they do not mix up - divide into several files or something else
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question