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

Davidson Louis
Davidson Louis
873 Points

Can someone help me with this please?

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

RandomTest.java
Random randomGenerator;

1 Answer

Matt Veit
Matt Veit
15,597 Points

Try this: Random randomGenerator = new Random();