Java tutorial
//package com.java2s; import java.util.Random; public class Main { public static String getCheckCode() { String code = (new Random().nextInt(900000) + 100000) + ""; return code; } }