/*
Date : 14 November 2013
Author : Shivam Tiwari
Organization : http://mycodedock.blogspot.in/
Description : Random Integers between two ranges in Java
*/
//import the Random library (class)
import java.util.Random;
//main class
public class Main{
//main function
public static void main
(String[] args
){
//declaring variables
int x;
int MAXVAL = 50;
//create an object of the Random class named randomObj
//run the loop 100 times from 0 to 99
for(int i = 0; i < 99 ; i++){
//generate a random integer betwen 0 to 50 and store in x
x = randomObj.nextInt(50);
//print the value in x
}
}
}