Here you can find the source of randomLetter()
public static char randomLetter()
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static final char[] letters = { 'A', 'T', 'G', 'C' }; public static Random rand = new Random(); public static char randomLetter() { return letters[rand.nextInt(letters.length)]; }/*from w w w . j a v a 2 s . c o m*/ }