Java tutorial
import java.util.Random; public class Main { public static void main(String args[]) { Random randomno = new Random(); // get next next pseudorandom value int value = randomno.nextInt(); // check the value System.out.println("Value is: " + value); } }