Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
how to fill a matrix, with random numbers between 1 and the other parameter chosen by the user: exp: between 1 and 30
1 ответ
0
(int)(Math.random()*userInput)+1;
this will give a random integer between 1 and whatever the user entered.