Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
how to fill a matrix, with random numbers between 1 and the other parameter chosen by the user: exp: between 1 and 30
1 Réponse
0
(int)(Math.random()*userInput)+1;
this will give a random integer between 1 and whatever the user entered.