Java tutorial
//package com.java2s; public class Main { public static int get1NumRange2(int start, int end) { return (int) (Math.random() * (end - start) + start); } }