Java Random String getRandomNumberStringBase36(int strLen)

Here you can find the source of getRandomNumberStringBase36(int strLen)

Description

get Random Number String Base

License

Apache License

Declaration

public static String getRandomNumberStringBase36(int strLen) 

Method Source Code

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

import java.util.*;

public class Main {
    private static Random rnd = new Random();
    private final static String digitsBase36 = "0123456789abcdefghijklmnopqrstuvwxyz";

    public static String getRandomNumberStringBase36(int strLen) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < strLen; i++) {
            sb.append(digitsBase36.charAt(rnd.nextInt(36)));
        }/*from   w  w w.j a v  a2s . c om*/
        return sb.toString();
    }
}

Related

  1. getRandomColors(final int size, final List colors)
  2. getRandomElementOrCompound(String equation)
  3. getRandomFromTier(int tier, String lvlRange)
  4. getRandomNumberString(int length)
  5. getRandomNumberString(int maxValue, int strLen)
  6. getRandomStr()
  7. getRandomStr()
  8. getrandomstr()
  9. getRandomStr()