不明白url中为什么要加1000—2000的随机数?知道的麻烦讲一下,谢谢。
int rand = (int)Math.random()*1000+1000;
String strurl = "http://wap.kuaidi100.com/q.jsp?rand="+rand+"&id="+id+"&postid="+code+"&fromWeb=null";AndroidURL
int rand = (int)Math.random()*1000+1000;
String strurl = "http://wap.kuaidi100.com/q.jsp?rand="+rand+"&id="+id+"&postid="+code+"&fromWeb=null";AndroidURL
用来记录一些信息。比如timestamp+rand来当id记录用户查询发起时的信息。得看他的服务端用rand来进行什么操作才能知道他是干嘛的。