Android Build a Simple Android App with Java Basic Android Programming Using the Random Class

Initialize a new Random variable called randomGenerator. Hint: Don't forget to use the new keyword.

Initialize a new Random variable called randomGenerator. Hint: Don't forget to use the new keyword.

RandomTest.java
Random randomGenerator;

2 Answers

<noob />
<noob />
16,316 Points

in which challnage u stuck?

Remy Benza
Remy Benza
6,259 Points

Random randomGenerator = new Random();

PB what you're looking for.