Java tutorial
import java.util.Random; public class Main { public static void main(String args[]) { Random randomno = new Random(); // setting seed randomno.setSeed(20); // value after setting seed System.out.println("Object after seed: " + randomno.nextInt()); } }