+ 1
Randomizing | Java
(Question) a. b. c. d. How do I place random values on each letter?
1 ответ
0
import java.util.Random;
Random rand = new Random ();
int value = rand.nextInt (20);
//creates a number between 0-20
int value = rand.nextInt (20) + 1;
//creates a number between 1-20
For loop {
create a random value
put value in your array
}