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

How to initalize a new Random

I don't know what I'm doing wrong. When I checked my code in android studio this was the way to do it. Could someone possibly show me how to do it?
Random randomGenerator = new random ();

1 Answer

james south
james south
Front End Web Development Techdegree Graduate 33,252 Points

types are capitalized, so you are close:

Random randomGenerator = new Random();

should work.

Thank you so much!