U
U
underlower2020-03-03 19:30:22
Arrays
underlower, 2020-03-03 19:30:22

How to display a random one from an array of strings in a textBox?

How to display a random one from an array of strings in a textBox?
That is, I have 2 arrays, for example:

string[] pers =
            {
                "Лев",
                "Конь",
                "Зебра",
                "Дракон"
            };

(the second one is exactly the same, only with different values)
How can I randomize a string from the first and second arrays on clicking the button and display one in textBox1, and the second in textBox2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#, 2020-03-03
@underlower

start by solving the problem - how to display something in a textBox ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question