example:
   Random r=new Random(mySeed);
   int i=r.nextInt(100); //i will between 0 and 99

解决方案 »

  1.   

    有没有生成字符串的,如ab3cdfesfeze?谢了!
      

  2.   

    hehe,you are so idleness. 
      

  3.   

    I really donot know how to make a random string .Not idleness like you said.
    but thank you for your answer.
      

  4.   

    ok. you can write a method contains following code:String getRandString(int iStrLength) {
      String strResult="";
      Random r=new Random(mySeed);
      for(int i=0;i<iStrLength;i++) {
        int iRand=r.nextInt(100)+1; //get an integer between 50 and 149
        strResult=strResult+(char)iRand;
      }//for
      return strResult;
    }but i don't test it, please do it yourself.