How to Generate Random Email ID in Selenium Webdriver

We are using Random class to generate a Random number. which we are using in our random Email ID.
  1. emailTextBx.click();  
  2. Random randomGenerator = new Random();  
  3. int randomInt = randomGenerator.nextInt(1000);  
  4. emailTextBx.sendKeys("username"+ randomInt +"@gmail.com");   
The above code will generate a random number starting from 0 to 999., as we are giving the integer limit upto 1000.
 
Output: