String[] wds = new String[] {"1280","1920","3840","666"};
String[] hgs = {"720","1080","2160","444"};

int index=(int)(Math.random()*wds.length);

String wd = wds[index];
String hg = hgs[index];

vars.put("wd",wd);
vars.put("hg",hg);

/*int[] wds = {1280,1920,3840,666};
int[] hgs = {720,1080,2160,444};

int index=(int)(Math.random()*wds.length);

int wd = wds[index];
int hg = hgs[index];
vars.putObject("wd",wd);
vars.putObject("hg",hg);*/

 

相关文章:

  • 2021-07-28
  • 2022-12-23
  • 2021-08-16
  • 2021-11-15
  • 2022-12-23
  • 2021-07-21
  • 2021-10-24
  • 2021-07-23
猜你喜欢
  • 2021-08-18
  • 2021-12-12
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案