private void randomDomainNamePos() {
   Random rand = new Random();
   List<String> domainList = this.diamondConfigure.getDomainNameList();
   if (!domainList.isEmpty()) {
     this.domainNamePos.set(rand.nextInt(domainList.size()));
   }
 }
Пример #2
0
 public String getFiveDigitRandomNo() {
   Random r = new Random(System.currentTimeMillis());
   int tempRandomVal = 10000 + r.nextInt(20000);
   return String.valueOf(tempRandomVal);
 }