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

Steven Tacker
Steven Tacker
667 Points

Simple but need help..

I'm lost.. Please help

RandomTest.java
Random randomGenerator= new Random();
int randomNumber = randomGenerator.nextInt(10);
int intAsString;
intasString + RandomNumber;

1 Answer

Fahad Mutair
Fahad Mutair
10,342 Points
Random randomGenerator= new Random();
int randomNumber = randomGenerator.nextInt(10);
String intAsString=  randomNumber + "";