Java Random Char getRandomCharacter()

Here you can find the source of getRandomCharacter()

Description

get Random Character

License

Open Source License

Declaration

private static char getRandomCharacter() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Random;

public class Main {
    private static Random rnd = new Random();

    private static char getRandomCharacter() {
        char c = (char) (rnd.nextInt(26) + 'a');
        return c;
    }/*from   www.j a v  a2  s  .co m*/
}

Related

  1. getRandomChar(int size)
  2. getRandomChar(int x)
  3. getRandomChar(int[][] ranges, char differentThen, boolean caseSensitive, Random random)
  4. getRandomChar(Random random, boolean upper)
  5. getRandomChar(Random random, int type)
  6. getRandomCharacter()
  7. randomChar()
  8. randomChar()
  9. randomChar()