How to create random generator of email and pasword

Hello,

the easiest way is to use RandomStringUtils library from Apache lang utils.

String randomMail = RandomStringUtils.randomAlphanumeric(10) + "@mymail.com"
String randomPassword = RandomStringUtils.randomAlphanumeric(20)

The method takes string length as parameter.