mirror of
https://github.com/luoye663/e5.git
synced 2026-03-13 01:21:42 +00:00
修复正式环境无法取到reids信息问题
This commit is contained in:
@@ -41,7 +41,15 @@ public class dome01 {
|
||||
|
||||
@Test
|
||||
public void r(){
|
||||
Random r=new Random();
|
||||
System.out.println(r.nextInt(200-100+1)+100);
|
||||
for (int i = 0; i < 30; i++) {
|
||||
System.out.println(getRandom(60,120));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getRandom(int start, int end){
|
||||
Random r = new Random();
|
||||
String Expiration = String.valueOf((r.nextInt(end-start +1) + start));
|
||||
return Expiration;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user