Welcome to the Treehouse Community
Looking to learn something new?
Random randomGenerator=new Random(); int randomNumber=new numberGenerator.nextInt(); What is the problem in these?
The error showing to my code is "The package randomGenerator doesn't exists? Please help me what is the problem with my code, it will be really appreciable. Thank you in advance.
Random randomGenerator=new Random(); int randomNumber=new randomGenerator.nextInt();
Cindy LeaCourses Plus Student 6,485 Points
They are looking for this:
Random randomGenerator = new Random();