临时更改为异步执行

This commit is contained in:
APLS
2020-04-19 23:47:36 +08:00
parent 6591358b8c
commit 37e40bdcd8
5 changed files with 41 additions and 33 deletions

View File

@@ -42,14 +42,14 @@ public class dome01 {
@Test
public void r(){
for (int i = 0; i < 30; i++) {
System.out.println(getRandom(60,120));
System.out.println(getRandom(3600,7200));
}
}
public String getRandom(int start, int end){
Random r = new Random();
String Expiration = String.valueOf((r.nextInt(end-start +1) + start));
String Expiration = String.valueOf((r.nextInt(end-start +1) + start) );
return Expiration;
}
}