Java tutorial
//package com.java2s; import java.util.Random; public class Main { public static int proLevelRandom(int i) { Random generator = new Random(); int result = generator.nextInt(i); return result; } }