This blog is for Automation Test Engineers

Saturday, 2 September 2017

How to generate random numbers


int a;
Random b=new Random();
(for a=1;a<=10;a++){
System.out.println(b.nextInt(1000);
}

0

0 comments:

Post a Comment