+ 1

Randomizing | Java

(Question) a. b. c. d. How do I place random values on each letter?

10th Feb 2019, 2:44 AM
Kenneth Ventura
Kenneth Ventura - avatar
1 Réponse
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 }
10th Feb 2019, 2:54 AM
Denise Roßberg
Denise Roßberg - avatar