Random randomGenerator; random. randomGenerator = new randomGenerator();
Hie guys where am i getting my code wrong here. Iam trying to initialize a new random generator
james southFront End Web Development Techdegree Graduate 33,252 Points
you are close. the syntax for declaring is Type varName; to initialize it is varName = new Type(); to do it in one line would be Type varName = new Type(); Random is your type and randomGenerator is your varName.