Java Random String generateRandomString()

Here you can find the source of generateRandomString()

Description

generate Random String

License

Apache License

Declaration

static String generateRandomString() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**//w w  w  .j av a2 s. c om
     * @return
     */
    static String generateRandomString() {
        return Long.toHexString(Double.doubleToLongBits(Math.random()));
    }
}

Related

  1. generateRandomString()
  2. generateRandomString()
  3. generateRandomString()
  4. generateRandomString()
  5. generateRandomString()
  6. generateRandomString(final int minCharLen, final int maxCharLen)
  7. generateRandomString(final String pattern)
  8. generateRandomString(int count)
  9. generateRandomString(int len)