Here you can find the source of randint(int max)
public static int randint(int max)
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { public static int randint(int max) { return new Random().nextInt(max); }/*from ww w .j a v a 2 s . c o m*/ }