Java tutorial
//package com.java2s; import java.util.Random; public class Main { /** * Returns a random int between 0 and 999. */ public static int getRandom() { return new Random().nextInt(999); } }