Java tutorial
//package com.java2s; import java.util.Random; public class Main { private static int getRandomNum() { return new Random().nextInt(10000); } }