Free Puzzle Questions with Answer using Java, C#, JavaScript and PHP

Java Quiz - Random Number Generator

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package random.number.generator;

import java.util.Random;

/**
 *
 * @author Bereket
 */
public class RandomNumberGenerator {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Random rnd = new Random();
        
        System.out.println("Random Number Generation starts here");
        
        for(int i=0; i<5; i++){
            int generatedNumber = rnd.nextInt(100);//generate between 0 and 100
            
            System.out.println("The number is " + String.valueOf(generatedNumber));
        }
    }
    
}