Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialYusuf Mohamed
2,631 PointsHow 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
Front End Web Development Techdegree Graduate 33,271 Pointstypes are capitalized, so you are close:
Random randomGenerator = new Random();
should work.
Yusuf Mohamed
2,631 PointsYusuf Mohamed
2,631 PointsThank you so much!