Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.util.Random;
public class Main {
public static char RandomCharFromStr(String str) {
Random random = new Random();
int index = random.nextInt(str.length());
return str.charAt(index);
}
}