Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Random; public class Main { public static long getRandomLong3() { Random rd = new Random(); long l2 = 0; l2 = (int) (Math.random() * 300); return l2; } }