Here you can find the source of randInt(int n)
@Deprecated public static int randInt(int n)
//package com.java2s; //License from project: Apache License import java.util.Random; public class Main { @Deprecated/* ww w. j a v a 2 s .com*/ private static Random random = new Random(); @Deprecated public static int randInt(int n) { return random.nextInt(n); } }