@@ -0,0 +1,892 @@
+package selling.sunshine.utils;%0A%0Aimport java.util.Random;%0A%0A/**%0A * Created by sunshine on 5/31/16.%0A */%0Apublic class PasswordGenerator %7B%0A    private static final Random seed = new Random();%0A    private static final char%5B%5D code = new String(%221234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz%22).toCharArray();%0A%0A    private static int num(int min, int max) %7B%0A        return min + seed.nextInt(max - min);%0A    %7D%0A%0A    public static char generateCode() %7B%0A        return code%5Bnum(0, code.length)%5D;%0A    %7D%0A%0A    public static String generate() %7B%0A        char%5B%5D temp = new char%5B6%5D;%0A        for (int i = 0; i %3C temp.length; i++) %7B%0A            temp%5Bi%5D = generateCode();%0A        %7D%0A        StringBuffer result = new StringBuffer();%0A        Random random = new Random();%0A        result.append(new String(temp));%0A        result.append(random.nextInt(99));%0A        return result.toString();%0A    %7D%0A%7D%0A

add password generator