Here you can find the source of getDocumentNumber()
public static String getDocumentNumber()
//package com.java2s; /*//from w ww .j ava 2 s . c o m * All GTAS code is Copyright 2016, Unisys Corporation. * * Please see LICENSE.txt for details. */ import java.util.Random; public class Main { private static String[] alphas = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" }; public static String getDocumentNumber() { Random random = new Random(); int select = random.nextInt(99) * 1234; int select2 = random.nextInt(alphas.length); return alphas[select2] + "0" + select; } }