package ve.gob.cnti.receiver.utils;

import java.util.Random;

public class RamdomNumber implements IRamdomNumber{

	public RamdomNumber() {
		// TODO Auto-generated constructor stub
	}
	
	public int randInt(int min, int max) {

	    // NOTE: Usually this should be a field rather than a method
	    // variable so that it is not re-seeded every call.
	    Random rand = new Random(System.currentTimeMillis());

	    // nextInt is normally exclusive of the top value,
	    // so add 1 to make it inclusive
	    int randomNum = rand.nextInt((max - min) + 1) + min;

	    return randomNum;
	}

}
