Java Random String getRandomStr()

Here you can find the source of getRandomStr()

Description

get Random Str

License

Open Source License

Declaration

public static String getRandomStr() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Random;

public class Main {

    public static String getRandomStr() {
        StringBuilder sb = new StringBuilder();
        sb.append(System.currentTimeMillis());
        sb.append(new Random().nextInt(10000));
        return sb.toString();
    }//from  w  ww.ja v  a2s  . co  m
}

Related

  1. getRandomNumberStringBase36(int strLen)
  2. getRandomStr()
  3. getRandomStr()
  4. getrandomstr()
  5. getRandomStr()
  6. getRandomStr(int Len)
  7. getRandomStr(int length)
  8. GetRandomStr(int length)
  9. getRandomStr(int length)